Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_building_loader.h File Reference
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "../../api/structures/sf_building_structures.h"
Include dependency graph for sf_building_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WorldCoord
struct  Collision
struct  Resource
struct  Building

Macros

#define MAX_POINTS   255
#define MAX_COLLISIONS   5
#define MAX_RESOURCES   5

Enumerations

enum  FieldKey {
  FIELD_UNKNOWN , FIELD_ID , FIELD_BUILDING_REQUIRED , FIELD_CAN_ENTER ,
  FIELD_CENTER_X , FIELD_CENTER_Y , FIELD_X , FIELD_Y ,
  FIELD_COLLISION_COUNT , FIELD_DESCRIPTION_ID , FIELD_FLAGS , FIELD_HEALTH ,
  FIELD_NAME_ID , FIELD_RACE , FIELD_SLOT_COUNT , FIELD_COLLISIONS ,
  FIELD_RESOURCES , FIELD_SHADOW , FIELD_POINTS , FIELD_AMOUNT ,
  FIELD_TYPE , FIELD_LIST , FIELD_NUMBER
}

Functions

char * readfile (const char *path)
bool parse_building_json_entrypoint (const char *building_json_name, const char *mod_id, Building *out_building)

Macro Definition Documentation

◆ MAX_COLLISIONS

#define MAX_COLLISIONS   5

Definition at line 12 of file sf_building_loader.h.

◆ MAX_POINTS

#define MAX_POINTS   255

Definition at line 11 of file sf_building_loader.h.

◆ MAX_RESOURCES

#define MAX_RESOURCES   5

Definition at line 13 of file sf_building_loader.h.

Enumeration Type Documentation

◆ FieldKey

enum FieldKey
Enumerator
FIELD_UNKNOWN 
FIELD_ID 
FIELD_BUILDING_REQUIRED 
FIELD_CAN_ENTER 
FIELD_CENTER_X 
FIELD_CENTER_Y 
FIELD_X 
FIELD_Y 
FIELD_COLLISION_COUNT 
FIELD_DESCRIPTION_ID 
FIELD_FLAGS 
FIELD_HEALTH 
FIELD_NAME_ID 
FIELD_RACE 
FIELD_SLOT_COUNT 
FIELD_COLLISIONS 
FIELD_RESOURCES 
FIELD_SHADOW 
FIELD_POINTS 
FIELD_AMOUNT 
FIELD_TYPE 
FIELD_LIST 
FIELD_NUMBER 

Definition at line 66 of file sf_building_loader.h.

Function Documentation

◆ parse_building_json_entrypoint()

bool parse_building_json_entrypoint ( const char * building_json_name,
const char * mod_id,
Building * out_building )

Definition at line 552 of file sf_building_loader.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readfile()

char * readfile ( const char * path)

Definition at line 496 of file sf_building_loader.c.

Here is the call graph for this function:
Here is the caller graph for this function: