3static std::map<uint16_t, ai_aoe_handler_ptr> s_ai_aoe_handler_map;
7 auto check = s_ai_aoe_handler_map.find(spell_line);
8 if (check != s_ai_aoe_handler_map.end())
12 "%s (v%s) has replaced a AOE AI Handler [%d] (Was this on purpose?)",
17 s_ai_aoe_handler_map[spell_line] = handler;
22 auto it = s_ai_aoe_handler_map.find(spell_line);
23 if (it == s_ai_aoe_handler_map.end())
27 "Unknown spell ID for AOE ai handler, Assigning a default handler.");
28 it = s_ai_aoe_handler_map.emplace(spell_line,
void log_warning(const char *message)
uint32_t __thiscall area_pain_ai_handler(SF_CGdBattleDevelopment *_this, SF_Coord *cast_position, uint16_t spell_line, SF_CGdResourceSpell *spell_data)
void registerAiAOEHandler(uint16_t spell_line, ai_aoe_handler_ptr handler)
ai_aoe_handler_ptr get_ai_aoe_handler(uint16_t spell_line)
uint32_t(__thiscall * ai_aoe_handler_ptr)(SF_CGdBattleDevelopment *_this, SF_Coord *position, uint16_t spell_line, SF_CGdResourceSpell *spell_data)