27#define TILEMAP_JSON_STRBUF_SZ 128
51#define TILEMAP_JPATH_SCRIPT "/properties/[name=script_%d]/value"
53#define TILEMAP_JPATH_STRING "/properties/[name=string_%d]/value"
55#define TILEMAP_JPATH_GID "/properties/[name=gid]/value"
57#define TILEMAP_JPATH_TS_SRC "/tilesets/0/source"
59#define TILEMAP_JPATH_TILE "/layers/[name=terrain]/data/%d"
61#define TILEMAP_JPATH_PROP_NAME "/properties/[name=name]/value"
63#define TILEMAP_JPATH_PROP_ENGINE "/properties/[name=engine]/value"
65#define TILEMAP_JPATH_PROP_WEATHER "/properties/[name=weather]/value"
67#define TILEMAP_JPATH_PROP_EDITABLE "/properties/[name=editable]/value"
69#define TILEMAP_JPATH_MOB_X "/layers/[name=mobiles]/objects/%d/x"
71#define TILEMAP_JPATH_MOB_Y "/layers/[name=mobiles]/objects/%d/y"
73#define TILEMAP_JPATH_MOB_NAME "/layers/[name=mobiles]/objects/%d/name"
75#define TILEMAP_JPATH_MOB_SPRITE "/layers/[name=mobiles]/objects/%d/class"
77#define TILEMAP_JPATH_MOB_GID "/layers/[name=mobiles]/objects/%d/properties/[name=gid]/value"
79#define TILEMAP_JPATH_MOB_SCRIPT "/layers/[name=mobiles]/objects/%d/properties/[name=script]/value"
81#define TILEMAP_JPATH_MOB_TYPE_FLAG "/layers/[name=mobiles]/objects/%d/properties/[name=type]/value"
82#define TILEMAP_JPATH_MOB_PLAYER_FLAG "/layers/[name=mobiles]/objects/%d/properties/[name=player]/value"
83#define TILEMAP_JPATH_MOB_ASCII "/layers/[name=mobiles]/objects/%d/properties/[name=ascii]/value"
85#define TILEMAP_JPATH_TS_TILE "/tiles/%d/image"
87#define TILEMAP_JPATH_TS_FLAGS "/tiles/%d/properties/[name=flags]/value"
88#define TILEMAP_JPATH_TS_ASCII "/tiles/%d/properties/[name=ascii]/value"
89#define TILEMAP_JPATH_ITEM_GID "/layers/[name=items]/objects/%d/properties/[name=gid]/value"
90#define TILEMAP_JPATH_ITEM_NAME "/layers/[name=items]/objects/%d/name"
91#define TILEMAP_JPATH_ITEM_TYPE "/layers/[name=items]/objects/%d/class"
92#define TILEMAP_JPATH_ITEM_SPRITE "/layers/[name=items]/objects/%d/properties/[name=sprite]/value"
93#define TILEMAP_JPATH_ITEM_DATA "/layers/[name=items]/objects/%d/properties/[name=data]/value"
94#define TILEMAP_JPATH_ITEM_CRAFTABLE "/layers/[name=items]/objects/%d/properties/[name=craftable]/value"
95#define TILEMAP_JPATH_CROP_DEF_NAME "/layers/[name=crops]/objects/%d/name"
96#define TILEMAP_JPATH_CROP_DEF_GID "/layers/[name=crops]/objects/%d/properties/[name=gid]/value"
97#define TILEMAP_JPATH_CROP_DEF_CYCLE "/layers/[name=crops]/objects/%d/properties/[name=cycle]/value"
98#define TILEMAP_JPATH_CROP_DEF_REGROWS "/layers/[name=crops]/objects/%d/properties/[name=regrows]/value"
99#define TILEMAP_JPATH_CROP_DEF_SPRITE "/layers/[name=crops]/objects/%d/properties/[name=sprite]/value"
100#define TILEMAP_JPATH_CROP_DEF_PRODUCE_GID "/layers/[name=crops]/objects/%d/properties/[name=produce]/value"
Engine state data and main header, used in every engine file.
int16_t tilemap_json_load(const RESOURCE_ID id, struct TILEMAP *t)
Load tilemap specified by id into TILEMAP struct t.
Definition: tmjson.c:691
uint32_t RESOURCE_ID
String or numerical identifier specifying an asset on disk.
Definition: nullr.h:16
Information pertaining to in-game world currently loaded.
Definition: tmstruct.h:87