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

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)
 
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
 
FigureFunctions figureAPI
 
IteratorFunctions iteratorAPI
 
RegistrationFunctions registrationAPI
 
EffectFunctions effectAPI
 
AiFunctions aiAPI
 

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

◆ applySpellTag()

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

Definition at line 51 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ linkAOEAIHandler()

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

Definition at line 74 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 68 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 109 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 86 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 93 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 79 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 104 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 62 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 98 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 57 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 27 of file sf_mod_registry.cpp.

Here is the caller graph for this function: