Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_campaign_loader.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "hooks/sf_campaign_hook.h"
Include dependency graph for sf_campaign_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CampaignJson
 Parse result: the definition plus which keys were actually present. More...

Enumerations

enum  CampaignFieldKey {
  CAMPAIGN_FIELD_UNKNOWN = 0 , CAMPAIGN_FIELD_NAME , CAMPAIGN_FIELD_CAMPAIGN_NAME_ID , CAMPAIGN_FIELD_DESCRIPTION ,
  CAMPAIGN_FIELD_AUTHOR , CAMPAIGN_FIELD_START_MAP , CAMPAIGN_FIELD_TUTORIAL_MAP , CAMPAIGN_FIELD_CAMPAIGN_FOLDER ,
  CAMPAIGN_FIELD_STARTERKIT , CAMPAIGN_FIELD_INTRO_VIDEO , CAMPAIGN_FIELD_AVATAR_TYPE
}

Functions

bool parse_campaign_json_file (const char *path, CampaignJson *out_campaign)
 Reads and parses a campaign JSON file.