Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_hooks.h File Reference
Include dependency graph for sf_hooks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_FUNCTION(group, name, address)
#define INCLUDE_FUNCTION(group, name, pointer)

Functions

SFBuilding *__thiscall registerBuilding (uint8_t building_type)
void __thiscall linkBuildingDoneHandler (SFBuilding *building, building_done_handler_ptr handler)
void __thiscall linkBuildingJSON (SFBuilding *building, const char *building_json_name)
void __thiscall linkBuildingEntryHandler (SFBuilding *building, building_entry_handler_ptr handler)
void __thiscall applyBuildingTag (SFBuilding *spell, BuildingTag tag)
SFSpell *__thiscall registerSpell (uint16_t spell_id)
void __thiscall applySpellTag (SFSpell *spell, SpellTag tag)
void __thiscall linkTypeHandler (SFSpell *spell, handler_ptr typeHandler)
void __thiscall linkEffectHandler (SFSpell *spell, uint16_t spell_effect_id, handler_ptr effectHandler)
void __thiscall linkEndHandler (SFSpell *spell, handler_ptr endHandler)
void __thiscall linkSubEffectHandler (SFSpell *spell, sub_effect_handler_ptr handler)
void __thiscall linkRefreshHandler (SFSpell *spell, refresh_handler_ptr handler)
void __thiscall linkDealDamageHandler (SFSpell *spell, damage_handler_ptr handler, SpellDamagePhase phase)
void __thiscall linkOnHitHandler (SFSpell *spell, onhit_handler_ptr handler, OnHitPhase phase)
void __thiscall linkSingleTargetAIHandler (SFSpell *spell, ai_single_handler_ptr handler)
void __thiscall linkAOEAIHandler (SFSpell *spell, ai_aoe_handler_ptr handler)
void __thiscall linkAvoidanceAIHandler (SFSpell *spell, ai_avoidance_handler_ptr handler)
void __thiscall linkPhysRainHandler (SFSpell *spell, sub_effect_handler_ptr handler)
void __thiscall linkPhysEffectHandler (SFSpell *spell, phys_effect_handler_ptr handler)
void __thiscall linkEnchantChanceHandler (SFSpell *spell, enchant_handler_ptr handler)
SFModcreateModInfo (const char *mod_id, const char *mod_version, const char *mod_author, const char *mod_description)
void initialize_beta_hooks ()
void initialize_data_hooks ()
 Used to initialize all disparate hooks in one place.

Variables

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

Macro Definition Documentation

◆ DEFINE_FUNCTION

#define DEFINE_FUNCTION ( group,
name,
address )
Value:
name ## _ptr name = (name ## _ptr)(ASI::AddrOf(address)); \
group ## API.name = name;
int AddrOf(int offset)
returns "real" virtual address of given memory offset
Definition sf_asi.h:135

Definition at line 8 of file sf_hooks.h.

◆ INCLUDE_FUNCTION

#define INCLUDE_FUNCTION ( group,
name,
pointer )
Value:
group ## API.name = pointer;

Definition at line 12 of file sf_hooks.h.

Function Documentation

◆ applyBuildingTag()

void __thiscall applyBuildingTag ( SFBuilding * spell,
BuildingTag tag )
extern

Definition at line 64 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ applySpellTag()

void __thiscall applySpellTag ( SFSpell * spell,
SpellTag tag )
extern

Definition at line 101 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ createModInfo()

SFMod * createModInfo ( const char * mod_id,
const char * mod_version,
const char * mod_author,
const char * mod_description )
extern

Definition at line 781 of file sf_ui_wrappers.c.

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

◆ linkAOEAIHandler()

void __thiscall linkAOEAIHandler ( SFSpell * spell,
ai_aoe_handler_ptr handler )
extern

Definition at line 132 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkAvoidanceAIHandler()

void __thiscall linkAvoidanceAIHandler ( SFSpell * spell,
ai_avoidance_handler_ptr handler )
extern

Definition at line 127 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkBuildingDoneHandler()

void __thiscall linkBuildingDoneHandler ( SFBuilding * building,
building_done_handler_ptr handler )
extern

Definition at line 54 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkBuildingEntryHandler()

void __thiscall linkBuildingEntryHandler ( SFBuilding * building,
building_entry_handler_ptr handler )
extern

Definition at line 59 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkBuildingJSON()

void __thiscall linkBuildingJSON ( SFBuilding * building,
const char * building_json_name )
extern

Definition at line 49 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkDealDamageHandler()

void __thiscall linkDealDamageHandler ( SFSpell * spell,
damage_handler_ptr handler,
SpellDamagePhase phase )
extern

Definition at line 164 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkEffectHandler()

void __thiscall linkEffectHandler ( SFSpell * spell,
uint16_t spell_effect_id,
handler_ptr effectHandler )
extern

Definition at line 143 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkEnchantChanceHandler()

void __thiscall linkEnchantChanceHandler ( SFSpell * spell,
enchant_handler_ptr handler )
extern

Definition at line 170 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkEndHandler()

void __thiscall linkEndHandler ( SFSpell * spell,
handler_ptr endHandler )
extern

Definition at line 149 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkOnHitHandler()

void __thiscall linkOnHitHandler ( SFSpell * spell,
onhit_handler_ptr handler,
OnHitPhase phase )
extern

Definition at line 137 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkPhysEffectHandler()

void __thiscall linkPhysEffectHandler ( SFSpell * spell,
phys_effect_handler_ptr handler )
extern

Definition at line 112 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkPhysRainHandler()

void __thiscall linkPhysRainHandler ( SFSpell * spell,
sub_effect_handler_ptr handler )
extern

Definition at line 107 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkRefreshHandler()

void __thiscall linkRefreshHandler ( SFSpell * spell,
refresh_handler_ptr handler )
extern

Definition at line 159 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkSingleTargetAIHandler()

void __thiscall linkSingleTargetAIHandler ( SFSpell * spell,
ai_single_handler_ptr handler )
extern

Definition at line 122 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkSubEffectHandler()

void __thiscall linkSubEffectHandler ( SFSpell * spell,
sub_effect_handler_ptr handler )
extern

Definition at line 154 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkTypeHandler()

void __thiscall linkTypeHandler ( SFSpell * spell,
handler_ptr typeHandler )
extern

Definition at line 117 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ registerBuilding()

SFBuilding *__thiscall registerBuilding ( uint8_t building_type)
extern

Definition at line 35 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ registerSpell()

SFSpell *__thiscall registerSpell ( uint16_t spell_id)
extern

Definition at line 72 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ figureAPI

FigureFunctions figureAPI
extern

Definition at line 13 of file TestMod.cpp.

◆ registrationAPI

RegistrationFunctions registrationAPI
extern

Definition at line 14 of file TestMod.cpp.

◆ spellAPI

SpellFunctions spellAPI
extern

Definition at line 11 of file TestMod.cpp.

◆ toolboxAPI

ToolboxFunctions toolboxAPI
extern

Definition at line 12 of file TestMod.cpp.