Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_enchant_hook.c
Go to the documentation of this file.
1#include "sf_enchant_hook.h"
4
5
6uint32_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}
uint32_t sf_enchant_hook(SF_CGdFigure *_this, uint16_t figure_id, uint16_t spell_line_id)
enchant_handler_ptr get_enchant_handler(uint16_t spell_line)
uint16_t(__thiscall * enchant_handler_ptr)(SF_CGdFigure *_this, uint16_t figure_id)
A structure for the global list of figures and related statistics for them.