Spellforce-Spell-framework
Toggle main menu visibility
Loading...
Searching...
No Matches
sf_effect_functions.h
Go to the documentation of this file.
1
9
10
#pragma once
11
#include "
./structures/sf_effect_structures.h
"
12
13
typedef
void (__thiscall *
sub_effect_handler_ptr
)(
SF_CGdEffect
*,
14
uint16_t effect_index);
15
16
DECLARE_FUNCTION
(
void
, setEffectXData,
SF_CGdEffect
*_this, uint16_t effect_index,
SpellDataKey
key, uint32_t value);
17
DECLARE_FUNCTION
(uint32_t, getEffectXData,
SF_CGdEffect
*_this, uint16_t effect_index,
SpellDataKey
key);
18
DECLARE_FUNCTION
(uint16_t, addEffect,
SF_CGdEffect
*_this,
CGdEffectType
effect_id,
SF_CGdTargetData
*source,
19
SF_CGdTargetData
*target, uint32_t tick_start, uint16_t tick_count,
SF_Rectangle
*param_6);
20
DECLARE_FUNCTION
(
void
, tryEndEffect,
SF_CGdEffect
*_this, uint16_t effect_index);
21
DECLARE_FUNCTION
(
bool
, effectXDataExists,
SF_CGdEffect
*_this, uint16_t effect_index,
SpellDataKey
key);
26
typedef
struct
27
{
28
setEffectXData_ptr
setEffectXData
;
29
addEffect_ptr
addEffect
;
30
effectXDataExists_ptr
effectXDataExists
;
31
getEffectXData_ptr
getEffectXData
;
32
tryEndEffect_ptr
tryEndEffect
;
33
}
EffectFunctions
;
sub_effect_handler_ptr
void(__thiscall * sub_effect_handler_ptr)(SF_CGdEffect *, uint16_t effect_index)
Definition
sf_effect_functions.h:13
effectXDataExists_ptr
bool(__thiscall * effectXDataExists_ptr)(SF_CGdEffect *_this, uint16_t effect_index, SpellDataKey key)
Definition
sf_effect_functions.h:21
tryEndEffect_ptr
void(__thiscall * tryEndEffect_ptr)(SF_CGdEffect *_this, uint16_t effect_index)
Definition
sf_effect_functions.h:20
addEffect_ptr
uint16_t(__thiscall * addEffect_ptr)(SF_CGdEffect *_this, CGdEffectType effect_id, SF_CGdTargetData *source, SF_CGdTargetData *target, uint32_t tick_start, uint16_t tick_count, SF_Rectangle *param_6)
Definition
sf_effect_functions.h:19
getEffectXData_ptr
uint32_t(__thiscall * getEffectXData_ptr)(SF_CGdEffect *_this, uint16_t effect_index, SpellDataKey key)
Definition
sf_effect_functions.h:17
setEffectXData_ptr
void(__thiscall * setEffectXData_ptr)(SF_CGdEffect *_this, uint16_t effect_index, SpellDataKey key, uint32_t value)
Definition
sf_effect_functions.h:16
sf_effect_structures.h
CGdEffectType
CGdEffectType
Definition
sf_general_structures.h:498
SpellDataKey
SpellDataKey
Definition
sf_general_structures.h:462
DECLARE_FUNCTION
#define DECLARE_FUNCTION(type, name,...)
Declares a function with the specified return type, name, and arguments.
Definition
sf_general_structures.h:1845
EffectFunctions
Group of functions related to Effect manipulation.
Definition
sf_effect_functions.h:27
EffectFunctions::addEffect
addEffect_ptr addEffect
Definition
sf_effect_functions.h:29
EffectFunctions::getEffectXData
getEffectXData_ptr getEffectXData
Definition
sf_effect_functions.h:31
EffectFunctions::setEffectXData
setEffectXData_ptr setEffectXData
Definition
sf_effect_functions.h:28
EffectFunctions::effectXDataExists
effectXDataExists_ptr effectXDataExists
Definition
sf_effect_functions.h:30
EffectFunctions::tryEndEffect
tryEndEffect_ptr tryEndEffect
Definition
sf_effect_functions.h:32
SF_CGdEffect
Definition
sf_effect_structures.h:22
SF_CGdTargetData
Definition
sf_general_structures.h:948
SF_Rectangle
Definition
sf_general_structures.h:963
src
api
sf_effect_functions.h
Generated by
1.17.0