Spellforce-Spell-framework
Toggle main menu visibility
Loading...
Searching...
No Matches
sf_enchant_hook.c
Go to the documentation of this file.
1
#include "
sf_enchant_hook.h
"
2
#include "
../../registry/spell_data_registries/sf_enchant_registry.h
"
3
#include "
../../core/sf_wrappers.h
"
4
5
6
uint32_t __attribute__((no_caller_saved_registers, thiscall))
sf_enchant_hook
(
SF_CGdFigure
*_this, uint16_t figure_id,
7
uint16_t spell_line_id)
8
{
9
//log_info ("figure id: %d, spelline id %d", figure_id, spell_line_id);
10
enchant_handler_ptr
handler =
get_enchant_handler
(spell_line_id);
11
return
handler(_this, figure_id);
12
}
sf_enchant_hook
uint32_t sf_enchant_hook(SF_CGdFigure *_this, uint16_t figure_id, uint16_t spell_line_id)
Definition
sf_enchant_hook.c:6
sf_enchant_hook.h
get_enchant_handler
enchant_handler_ptr get_enchant_handler(uint16_t spell_line)
Definition
sf_enchant_registry.cpp:36
sf_enchant_registry.h
enchant_handler_ptr
uint16_t(__thiscall * enchant_handler_ptr)(SF_CGdFigure *_this, uint16_t figure_id)
Definition
sf_registration_structures.h:23
sf_wrappers.h
SF_CGdFigure
A structure for the global list of figures and related statistics for them.
Definition
sf_figure_structures.h:149
src
internal
core
hooks
sf_enchant_hook.c
Generated by
1.17.0