|
Spellforce-Spell-framework
|
Parses screens.json into ScreenEntry records. More...
Classes | |
| struct | ScreenEntry |
| One "map name -> loading screen mesh" pair. More... | |
Macros | |
| #define | JSMN_STATIC |
| #define | JSMN_PARENT_LINKS |
| #define | SCREEN_MAP_NAME_LEN 128 |
| #define | SCREEN_MSB_NAME_LEN 128 |
Functions | |
| bool | parse_screens_json_file (const char *path, ScreenEntry *out_entries, int max_entries, int *out_count) |
| Reads a screens.json: a single object of map_name : msb_file pairs. | |
Parses screens.json into ScreenEntry records.
Parsing only - discovery, validation and lookup belong to the Loading Screen Module (sf_screens_module.h), which owns the entries this fills in.
| #define JSMN_PARENT_LINKS |
Definition at line 16 of file sf_screens_loader.c.
| #define JSMN_STATIC |
Definition at line 15 of file sf_screens_loader.c.
| #define SCREEN_MAP_NAME_LEN 128 |
Definition at line 19 of file sf_screens_loader.h.
| #define SCREEN_MSB_NAME_LEN 128 |
Definition at line 20 of file sf_screens_loader.h.
| bool parse_screens_json_file | ( | const char * | path, |
| ScreenEntry * | out_entries, | ||
| int | max_entries, | ||
| int * | out_count ) |
Reads a screens.json: a single object of map_name : msb_file pairs.
| path | Full path to the file. |
| out_entries | Caller owned array, filled up to max_entries. |
| max_entries | Capacity of out_entries. |
| out_count | Number of entries written. |
Definition at line 73 of file sf_screens_loader.c.

