Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_subeffect_hook.c
Go to the documentation of this file.
1
10#include "../sf_wrappers.h"
11#include "../sf_hooks.h"
12
13#include "sf_subeffect_hook.h"
14
15void __thiscall sf_subeffect_hook(SF_CGDEffect *_this, uint16_t effect_id)
16{
17 uint16_t spell_id = effectAPI.getEffectXData(_this, effect_id,
19 if (spell_id)
20 {
21 SF_CGdResourceSpell spell_data;
23 spell_id);
26 if (handler != NULL)
27 {
28 handler(_this, effect_id);
29 }
30 }
31}
32
SpellFunctions * spellAPI
Definition TestMod.cpp:11
EffectFunctions effectAPI
Definition sf_hooks.c:37
void __thiscall sf_subeffect_hook(SF_CGDEffect *_this, uint16_t effect_id)
void(__thiscall * sub_effect_handler_ptr)(SF_CGDEffect *, uint16_t effect_index)
@ EFFECT_SUBSPELL_ID
sub_effect_handler_ptr get_sub_effect_handler(uint16_t spell_line)
getEffectXData_ptr getEffectXData
getResourceSpellData_ptr getResourceSpellData