Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_building_loader.h
Go to the documentation of this file.
1#ifndef BUILDING_LOADER_H
2#define BUILDING_LOADER_H
3
4#include <stdio.h>
5#include <string.h>
6#include <stdint.h>
7#include <stdlib.h>
8#include <stdbool.h>
10
11#define MAX_POINTS 255
12#define MAX_COLLISIONS 5
13#define MAX_RESOURCES 5
14
15typedef struct
16{
17 int32_t X;
18 int32_t Y;
20
21typedef struct
22{
25 bool shadow;
26} Collision;
27
28typedef struct
29{
30 int amount;
31 char type[32];
32} Resource;
33
65
92
93extern "C" char *readfile(const char *path);
94bool parse_building_json_entrypoint(const char *building_json_name, const char *mod_id, Building *out_building);
95
96#endif
#define MAX_RESOURCES
#define MAX_COLLISIONS
#define MAX_POINTS
@ FIELD_SHADOW
@ FIELD_RESOURCES
@ FIELD_CENTER_X
@ FIELD_UNKNOWN
@ FIELD_NUMBER
@ FIELD_LIST
@ FIELD_DESCRIPTION_ID
@ FIELD_RACE
@ FIELD_X
@ FIELD_ID
@ FIELD_CENTER_Y
@ FIELD_HEALTH
@ FIELD_TYPE
@ FIELD_CAN_ENTER
@ FIELD_NAME_ID
@ FIELD_Y
@ FIELD_SLOT_COUNT
@ FIELD_BUILDING_REQUIRED
@ FIELD_POINTS
@ FIELD_FLAGS
@ FIELD_COLLISIONS
@ FIELD_COLLISION_COUNT
@ FIELD_AMOUNT
char * readfile(const char *path)
bool parse_building_json_entrypoint(const char *building_json_name, const char *mod_id, Building *out_building)
Resource resources[5]
bool found_collision_count
bool found_description_id
Collision collisions[5]
bool found_building_required
WorldCoord points[255]