Spellforce-Spell-framework
|
Initializes and configures the Spellforce Spell Framework (SFSF). More...
#include "../core/sf_modloader.h"
#include "../core/sf_wrappers.h"
#include "../core/sf_hooks.h"
#include "sf_registry.h"
#include "sf_vanilla_registry.h"
#include "sf_mod_registry.h"
#include "spell_data_registries/sf_spelltype_registry.h"
#include "spell_data_registries/sf_spelleffect_registry.h"
#include "spell_data_registries/sf_spellend_registry.h"
#include "spell_data_registries/sf_spellrefresh_registry.h"
#include "spell_data_registries/sf_subeffect_registry.h"
#include "spell_data_registries/sf_spelldamage_registry.h"
#include <windows.h>
#include <iostream>
Go to the source code of this file.
Functions | |
void | registerFrameworkAPI () |
Registers the framework API addresses. | |
void | initialize_framework () |
Initializes the Spellforce Spell Framework (SFSF). | |
Variables | |
SpellforceSpellFramework | frameworkAPI |
SFMod * | g_current_mod |
SFMod * | g_framework_mod |
Initializes and configures the Spellforce Spell Framework (SFSF).
This file handles the initialization of various systems required by the Spellforce Spell Framework (SFSF), including setting up low-level hooks, linking APIs, and loading and registering mods. It serves as the core point for the framework to interact with the game, ensuring compatibility and enabling various mod functionalities.
The initialization process includes several phases:
Definition in file sf_registry.cpp.
void initialize_framework | ( | ) |
Initializes the Spellforce Spell Framework (SFSF).
This function initializes the Spellforce Spell Framework (SFSF), setting up hooks, APIs, vanilla spells, and loading/registering mods.
The initialization process includes the following phases:
Definition at line 99 of file sf_registry.cpp.
void registerFrameworkAPI | ( | ) |
Registers the framework API addresses.
This function loads the framework's API structure and assigns function pointers for various subsystems, including the figure, spell, toolbox, iterator, registration, and effect APIs. It also sets up logging functionality.
Definition at line 52 of file sf_registry.cpp.
SpellforceSpellFramework frameworkAPI |
Definition at line 39 of file sf_registry.cpp.
SFMod* g_current_mod |
Definition at line 40 of file sf_registry.cpp.
SFMod* g_framework_mod |
Definition at line 41 of file sf_registry.cpp.