Spellforce-Spell-framework
Toggle main menu visibility
Loading...
Searching...
No Matches
sf_screens_loader.h
Go to the documentation of this file.
1
12
13
#ifndef SCREENS_LOADER_H
14
#define SCREENS_LOADER_H
15
16
#include <stdbool.h>
17
#include <stdint.h>
18
19
#define SCREEN_MAP_NAME_LEN 128
20
#define SCREEN_MSB_NAME_LEN 128
21
23
typedef
struct
24
{
25
char
map_name
[
SCREEN_MAP_NAME_LEN
];
26
char
msb_file
[
SCREEN_MSB_NAME_LEN
];
27
}
ScreenEntry
;
28
38
bool
parse_screens_json_file
(
const
char
*path,
ScreenEntry
*out_entries,
39
int
max_entries,
int
*out_count);
40
42
#endif
// SCREENS_LOADER_H
SCREEN_MSB_NAME_LEN
#define SCREEN_MSB_NAME_LEN
Definition
sf_screens_loader.h:20
SCREEN_MAP_NAME_LEN
#define SCREEN_MAP_NAME_LEN
Definition
sf_screens_loader.h:19
parse_screens_json_file
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.
Definition
sf_screens_loader.c:73
ScreenEntry
One "map name -> loading screen mesh" pair.
Definition
sf_screens_loader.h:24
ScreenEntry::msb_file
char msb_file[128]
Definition
sf_screens_loader.h:26
ScreenEntry::map_name
char map_name[128]
Definition
sf_screens_loader.h:25
src
internal
core
sf_screens_loader.h
Generated by
1.17.0