Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_mod_registry.h File Reference
#include "../../api/sfsf.h"
#include "../core/sf_modloader.h"
#include "../core/sf_wrappers.h"
#include "../core/sf_hooks.h"
#include <list>
Include dependency graph for sf_mod_registry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void register_mod_spells ()
 Registers the mod spells and performs basic conflict checking.
void register_mod_buildings ()
uint16_t __thiscall getSpellTags (uint16_t spell_line_id)
uint32_t __thiscall getBuildingTags (uint8_t building_type)
uint8_t __thiscall getRacialFoodstore (uint8_t race)
uint8_t __thiscall getRacialSmelter (uint8_t race)
uint8_t __thiscall getRacialSawmill (uint8_t race)
uint8_t __thiscall getRacialStonecutter (uint8_t race)
uint8_t __thiscall getRacialWoodcutter (uint8_t race)
uint8_t __thiscall getRacialIronMine (uint8_t race)
uint8_t __thiscall getRacialQuarry (uint8_t race)

Variables

std::list< SFSpell * > g_internal_spell_list
std::list< SFBuilding * > g_internal_building_list

Function Documentation

◆ getBuildingTags()

uint32_t __thiscall getBuildingTags ( uint8_t building_type)

Definition at line 187 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialFoodstore()

uint8_t __thiscall getRacialFoodstore ( uint8_t race)

Definition at line 214 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialIronMine()

uint8_t __thiscall getRacialIronMine ( uint8_t race)

Definition at line 274 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialQuarry()

uint8_t __thiscall getRacialQuarry ( uint8_t race)

Definition at line 289 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialSawmill()

uint8_t __thiscall getRacialSawmill ( uint8_t race)

Definition at line 229 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialSmelter()

uint8_t __thiscall getRacialSmelter ( uint8_t race)

Definition at line 199 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialStonecutter()

uint8_t __thiscall getRacialStonecutter ( uint8_t race)

Definition at line 244 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getRacialWoodcutter()

uint8_t __thiscall getRacialWoodcutter ( uint8_t race)

Definition at line 259 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ getSpellTags()

uint16_t __thiscall getSpellTags ( uint16_t spell_line_id)

Definition at line 175 of file sf_mod_registry.cpp.

Here is the caller graph for this function:

◆ register_mod_buildings()

void register_mod_buildings ( )

Definition at line 607 of file sf_mod_registry.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_mod_spells()

void register_mod_spells ( )

Registers the mod spells and performs basic conflict checking.

This function iterates over the g_internal_spell_list and claims each spell's spell_id and spell_effect_id through the shared conflict registry, which logs and attributes any clash with a mod that registered the same ID earlier.

Additionally, it registers the spell type handler, spell effect handler, and spell end handler if the SFSpell struct has a non-null handler pointer.

See also
claim_numeric_id(), sf_error_registry.h

Definition at line 331 of file sf_mod_registry.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_internal_building_list

std::list<SFBuilding *> g_internal_building_list
extern

Definition at line 33 of file sf_mod_registry.cpp.

◆ g_internal_spell_list

std::list<SFSpell *> g_internal_spell_list
extern

Definition at line 70 of file sf_mod_registry.cpp.