Spellforce-Spell-framework
|
#include "../../api/sfsf.h"
#include "../core/sf_modloader.h"
#include "../core/sf_wrappers.h"
#include "../core/sf_hooks.h"
#include <list>
Go to the source code of this file.
Functions | |
void | register_mod_spells () |
Registers the mod spells and performs basic conflict checking. | |
uint16_t __thiscall | getSpellTags (uint16_t spell_line_id) |
Variables | |
std::list< SFSpell * > | g_internal_spell_list |
uint16_t __thiscall getSpellTags | ( | uint16_t | spell_line_id | ) |
|
extern |
Registers the mod spells and performs basic conflict checking.
This function iterates over the g_internal_spell_list and registers each spell by adding it to the spell_id_map and spell_effect_id_map. It checks for conflicts by checking if the spell_id or spell_effect_id is already registered by another mod. If a conflict is detected, an error message is logged. If no conflict is detected, the spell is added to the respective map.
Additionally, it registers the spell type handler, spell effect handler, and spell end handler if the SFSpell struct has a non-null handler pointer.
After registering all the spells, the memory allocated for each spell is freed.
Definition at line 143 of file sf_mod_registry.cpp.
|
extern |
Definition at line 25 of file sf_mod_registry.cpp.