maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RetroTile Parser
Collaboration diagram for RetroTile Parser:

Data Structures

struct  RETROTILE_PARSER
 

Macros

#define RETROTILE_PARSER_MSTATE_TABLE(f)
 

Typedefs

typedef MERROR_RETVAL(* retrotile_tj_parse_cb) (const char *filename, MAUG_MHANDLE *p_tm_h, MAUG_MHANDLE *p_td_h, size_t *p_td_c, mparser_wait_cb_t wait_cb, void *wait_data)
 

Functions

MERROR_RETVAL retrotile_parse_json_c (struct RETROTILE_PARSER *parser, char c)
 
MERROR_RETVAL retrotile_parse_json_file (const char *filename, MAUG_MHANDLE *p_tilemap_h, MAUG_MHANDLE *p_tile_defs_h, size_t *p_tile_defs_count, mparser_wait_cb_t wait_cb, void *wait_data)
 

Detailed Description

Macro Definition Documentation

◆ RETROTILE_PARSER_MSTATE_TABLE

#define RETROTILE_PARSER_MSTATE_TABLE ( f)
Value:
f( MTILESTATE_NONE, 0, "", 0, 0 ) \
f( MTILESTATE_HEIGHT, 1, "height", 0 , 0 ) \
f( MTILESTATE_WIDTH, 2, "width", 0 , 0 ) \
f( MTILESTATE_LAYERS, 3, "layers", 0 , 0 ) \
f( MTILESTATE_LAYER_DATA, 4, "data", 15 /* LAYER */, 0 ) \
f( MTILESTATE_LAYER_NAME, 5, "name", 15 /* LAYER */, 0 ) \
f( MTILESTATE_TILES, 6, "tiles", 0 , 1 ) \
f( MTILESTATE_TILES_ID, 7, "id", 6 /* TILES */ , 1 ) \
f( MTILESTATE_TILES_IMAGE, 8, "image", 6 /* TILES */ , 1 ) \
f( MTILESTATE_TILESETS, 9, "tilesets", 0 , 0 ) \
f( MTILESTATE_TILESETS_SRC, 10, "source", 9 /* TILESETS */, 0 ) \
f( MTILESTATE_TILESETS_FGID, 11, "firstgid",9 /* TILESETS */, 0 ) \
f( MTILESTATE_TILESETS_PROP, 12, "firstgid",9 /* TILESETS */, 0 ) \
f( MTILESTATE_GRID, 13, "grid", 0 , 1 ) \
f( MTILESTATE_TILES_PROP, 14, "properties",6 /* TILES */ , 1 ) \
f( MTILESTATE_LAYER, 15, "layers", /* [sic] */ 3 , 0 ) \
f( MTILESTATE_TILES_PROP_NAME, 16, "name", 14 /* TILES_PROP */ , 1 ) \
f( MTILESTATE_TILES_PROP_VAL, 17, "value", 14 /* TILES_PROP */ , 1 )