Spellforce-Spell-framework
Loading...
Searching...
No Matches
Assembly Hooks
Collaboration diagram for Assembly Hooks:

Topics

 Console Hook
 Used for hooking into the Ingame Console.
 End Spell Hook
 Used to inject 'endspell' handlers registered by mods and sfsf into spellforce.
 AI Hooks
 Hooks and Functions related to AI functionality.
 Custom Campaign Hook
 Custom Campaign selection screen and launch via the vanilla pre-game flow.
 Damage Hook
 Menu Hook
 Only Used internally to inject text onto the Main Menu of Spellforce.
 Refresh Hook
 Used to inject Spell Refresh Handlers into Spellforce.
 Effect Hook
 Used to inject Spell Effect Handlers into Spellforce.
 Spell Type Hook
 Used to inject new Spell Types into Spellforce.
 SubEffect Hook
 Used to inject sub effects into spellforce.
 Utility Hooks
 Hooks for Utility functions not directly related to each other; but not large enough to support their own hook type.

Functions

void initialize_data_hooks ()
 Used to initialize all disparate hooks in one place.
void initialize_beta_hooks ()

Variables

SpellFunctions spellAPI
EffectFunctions effectAPI
ToolboxFunctions toolboxAPI
BuildingFunctions buildingAPI
FigureFunctions figureAPI
IteratorFunctions iteratorAPI
UiFunctions uiAPI
AiFunctions aiAPI
RegistrationFunctions registrationAPI
uint32_t g_ranged_return_ok
uint32_t g_ranged_return_fail

Detailed Description

This group contains all the hooks used in SFSF.

See also
initialize_data_hooks()

Function Documentation

◆ initialize_beta_hooks()

void initialize_beta_hooks ( )

Definition at line 874 of file sf_hooks.c.

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

◆ initialize_data_hooks()

void initialize_data_hooks ( )

Used to initialize all disparate hooks in one place.

This function is also used to initalize indiviual function hooks. Individual Function hooks are simply storing a pointer to a function that's within Spellforce. Wrapper Functions grab a pointer from our own codebase.

See also
sf_wrappers.c

Definition at line 61 of file sf_hooks.c.

Here is the caller graph for this function:

Variable Documentation

◆ aiAPI

AiFunctions aiAPI

Definition at line 51 of file sf_hooks.c.

◆ buildingAPI

BuildingFunctions buildingAPI

Definition at line 47 of file sf_hooks.c.

◆ effectAPI

EffectFunctions effectAPI

Definition at line 45 of file sf_hooks.c.

◆ figureAPI

FigureFunctions figureAPI

Definition at line 48 of file sf_hooks.c.

◆ g_ranged_return_fail

uint32_t g_ranged_return_fail

Definition at line 638 of file sf_hooks.c.

◆ g_ranged_return_ok

uint32_t g_ranged_return_ok

Definition at line 637 of file sf_hooks.c.

◆ iteratorAPI

IteratorFunctions iteratorAPI

Definition at line 49 of file sf_hooks.c.

◆ registrationAPI

RegistrationFunctions registrationAPI

Definition at line 52 of file sf_hooks.c.

◆ spellAPI

SpellFunctions spellAPI

Definition at line 44 of file sf_hooks.c.

◆ toolboxAPI

ToolboxFunctions toolboxAPI

Definition at line 46 of file sf_hooks.c.

◆ uiAPI

UiFunctions uiAPI

Definition at line 50 of file sf_hooks.c.