Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_registry.cpp File Reference

Initializes and configures the Spellforce Spell Framework (SFSF). More...

Include dependency graph for sf_registry.cpp:

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
 
SFModg_current_mod
 
SFModg_framework_mod
 

Detailed Description

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:

  • Framework Configuration: Includes setting up API structures and initializing vanilla spells and handlers.
  • Mod Loading: Loads all compatible mods into the framework.
  • Mod Registration: Registers spells and functions from the loaded mods.
Note
Ensure that mods are compliant with the framework's API for compatibility.

Definition in file sf_registry.cpp.

Function Documentation

◆ initialize_framework()

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.

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

◆ registerFrameworkAPI()

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.

See also
figureAPI, spellAPI, toolboxAPI, iteratorAPI, registrationAPI, effectAPI

Definition at line 52 of file sf_registry.cpp.

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

Variable Documentation

◆ frameworkAPI

Definition at line 39 of file sf_registry.cpp.

◆ g_current_mod

SFMod* g_current_mod

Definition at line 40 of file sf_registry.cpp.

◆ g_framework_mod

SFMod* g_framework_mod

Definition at line 41 of file sf_registry.cpp.