11static std::map<uint16_t, sub_effect_handler_ptr> s_sub_effect_handler_map;
16 auto check = s_sub_effect_handler_map.find(spell_line);
17 if (check != s_sub_effect_handler_map.end())
21 "%s (v%s) has replaced a Subeffect Handler [%d] (Was this on purpose?)",
26 s_sub_effect_handler_map[spell_line] = handler;
31 auto it = s_sub_effect_handler_map.find(spell_line);
32 if (it == s_sub_effect_handler_map.end())
36 "Unknown Job ID for Spell End Effect, Assigning a default handler.");
37 it = s_sub_effect_handler_map.emplace(spell_line,
void log_warning(const char *message)
void(__thiscall * sub_effect_handler_ptr)(SF_CGDEffect *, uint16_t effect_index)
void __thiscall default_sub_effect_handler(SF_CGDEffect *_this, uint16_t effect_index)
void __thiscall common_sub_effect_handler(SF_CGDEffect *_this, uint16_t effect_index)
void __thiscall elemental_sub_effect_handler(SF_CGDEffect *_this, uint16_t effect_index)
void __thiscall elemental_chain_sub_effect_handler(SF_CGDEffect *_this, uint16_t effect_index)
sub_effect_handler_ptr get_sub_effect_handler(uint16_t spell_line)
void registerSubEffectHandler(uint16_t spell_line, sub_effect_handler_ptr handler)
void register_vanilla_sub_effect_handlers()