|
Spellforce-Spell-framework
|
Core mod that discovers, validates and registers custom campaigns. More...
Functions | |
| void | initialize_campaign_module () |
| Creates the module's mod entry and loads sfsf\campaigns*.json. | |
Variables | |
| SFMod * | g_campaign_mod = NULL |
| SFMod * | g_campaign_mod |
Core mod that discovers, validates and registers custom campaigns.
Custom campaigns are pure data: every .json under sfsf\campaigns\ is loaded here, checked, and handed to register_campaign(). The module owns its own SFMod entry so that a broken campaign shows up in the in-game mod list with a readable reason, exactly like a misbehaving .sfm would.
| void initialize_campaign_module | ( | ) |
Creates the module's mod entry and loads sfsf\campaigns*.json.
Safe to call when the folder does not exist - custom campaigns are simply disabled in that case. Must run before the main menu is built, since sf_menu_hook only offers the campaign button when g_campaign_count > 0.
Definition at line 258 of file sf_campaign_module.c.


| SFMod* g_campaign_mod = NULL |
The core mod that owns every JSON-defined campaign.
Definition at line 20 of file sf_campaign_module.c.
|
extern |
The core mod that owns every JSON-defined campaign.
Definition at line 20 of file sf_campaign_module.c.