Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_wrappers.h File Reference
#include "../../api/sfsf.h"
#include "../../asi/sf_asi.h"
Include dependency graph for sf_wrappers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef SF_String *(__thiscall * SF_String_ctor_ptr) (SF_String *, const char *)
 
typedef void(__thiscall * SF_String_dtor_ptr) (SF_String *)
 
typedef bool(__thiscall * has_spell_effect_ptr) (SF_CGdFigureToolbox *_this, uint16_t param_1, uint16_t param_2)
 
typedef void(__thiscall * vfunction_2_ptr) (void *_this, void *input)
 
typedef void(__thiscall * vfunction_ptr) (void *_this, char p1)
 
typedef void(__thiscall * vfunction12_ptr) (void *container, void *test, char p1)
 
typedef void(__thiscall * attach_string_ptr) (void *container, void *string)
 
typedef void(__thiscall * set_button_flag_ptr) (void *container, char flag)
 
typedef void(__thiscall * set_btn_index_ptr) (void *container, int index)
 
typedef void(__thiscall * create_button_ptr) (CMnuSmpButton *smpButton, float x_pos, float y_pos, float width, float height, SF_String *default_mesh, SF_String *unkn_mesh_string, SF_String *pressed_mesh, SF_String *disable_mesh)
 
typedef void(__thiscall * set_label_color_ptr) (CMnuLabel *_this, float r, float g, float b, char flag)
 
typedef void(__thiscall * set_btn_name_ptr) (void *button, SF_String *string)
 
typedef CMnuSmpButton *(__thiscall * initialize_smp_button_ptr) (CMnuSmpButton *btn)
 
typedef void(__thiscall * vfunction2_callback_attach_ptr) (void *, void *, void *, void *)
 
typedef void(__thiscall * initialize_menu_container_ptr) (CMnuContainer *_this)
 
typedef void(__thiscall * setup_menu_container_data_ptr) (CMnuContainer *_this, float x, float y, float width, float height, SF_String *background, SF_String *border)
 
typedef void(__thiscall * container_alpha_ptr) (CMnuContainer *_this, float alpha)
 
typedef void(__thiscall * CMnuBase_setname_ptr) (CMnuBase *_this, SF_String *name)
 

Functions

void log_message (const char *filename, const char *message)
 
void initialize_wrapper_data_hooks ()
 
bool __thiscall hasAuraActive (SF_CGdFigureToolbox *_this, uint16_t figure_id)
 
bool __thiscall isActionMelee (SF_SGtFigureAction *_this)
 
bool __thiscall hasSpellTag (uint16_t spell_id, SpellTag tag)
 
void __thiscall setupFigureIterator (CGdFigureIterator *iterator, SF_CGdSpell *spell)
 
void __thiscall disposeFigureIterator (CGdFigureIterator *iterator)
 
void __thiscall spellEffectCallback (SF_CGdSpell *_this, uint16_t source_index, uint16_t spell_index, bool(*condition)(SF_CGdSpell *_this, uint16_t spell_index, uint16_t walked_index), void(*callback)(SF_CGdSpell *_this, uint16_t source_index, uint16_t walked_index, uint16_t spell_index))
 
void __thiscall addBonusMultToStatistic (SF_CGdFigure *figure, StatisticDataKey key, uint16_t target, int8_t value)
 
void __thiscall spellClearFigureFlag (SF_CGdSpell *spell, uint16_t spell_index, SpellFlagKey key)
 
uint16_t __thiscall sf_get_spell_id (SF_CGdSpell *_this, uint16_t spell_index)
 
uint32_t getDistance (SF_Coord *pointA, SF_Coord *pointB)
 
SFLogsetup_logger ()
 
void log_warning (const char *message)
 
void log_info (const char *message)
 
void log_error (const char *message)
 

Variables

FUN_0069eaf0_ptr FUN_0069eaf0
 
fidfree_ptr fidFree
 
SF_String_ctor_ptr g_create_sf_string
 
SF_String_dtor_ptr g_destroy_sf_string
 
has_spell_effect_ptr has_spell_effect
 
create_button_ptr create_button_func
 
attach_string_ptr vfunction_apply_string
 
vfunction_ptr vfunction176
 
vfunction_ptr vfunction25
 
vfunction12_ptr vfunction12
 
initialize_smp_button_ptr initialize_smp_button
 
set_btn_name_ptr set_button_name
 
initialize_menu_container_ptr initialize_menu_container
 
set_label_color_ptr set_label_color
 
container_alpha_ptr set_container_alpha
 
setup_menu_container_data_ptr setup_menu_container_data
 
vfunction_2_ptr set_font
 
set_btn_index_ptr set_button_index
 
set_button_flag_ptr set_menu_button_flag
 
vfunction2_callback_attach_ptr attach_callback
 
vfunction_ptr vfunction16_attach_callback
 

Typedef Documentation

◆ attach_string_ptr

typedef void(__thiscall * attach_string_ptr) (void *container, void *string)

Definition at line 55 of file sf_wrappers.h.

◆ CMnuBase_setname_ptr

typedef void(__thiscall * CMnuBase_setname_ptr) (CMnuBase *_this, SF_String *name)

Definition at line 81 of file sf_wrappers.h.

◆ container_alpha_ptr

typedef void(__thiscall * container_alpha_ptr) (CMnuContainer *_this, float alpha)

Definition at line 79 of file sf_wrappers.h.

◆ create_button_ptr

typedef void(__thiscall * create_button_ptr) (CMnuSmpButton *smpButton, float x_pos, float y_pos, float width, float height, SF_String *default_mesh, SF_String *unkn_mesh_string, SF_String *pressed_mesh, SF_String *disable_mesh)

Definition at line 58 of file sf_wrappers.h.

◆ has_spell_effect_ptr

typedef bool(__thiscall * has_spell_effect_ptr) (SF_CGdFigureToolbox *_this, uint16_t param_1, uint16_t param_2)

Definition at line 9 of file sf_wrappers.h.

◆ initialize_menu_container_ptr

typedef void(__thiscall * initialize_menu_container_ptr) (CMnuContainer *_this)

Definition at line 72 of file sf_wrappers.h.

◆ initialize_smp_button_ptr

typedef CMnuSmpButton *(__thiscall * initialize_smp_button_ptr) (CMnuSmpButton *btn)

Definition at line 68 of file sf_wrappers.h.

◆ set_btn_index_ptr

typedef void(__thiscall * set_btn_index_ptr) (void *container, int index)

Definition at line 57 of file sf_wrappers.h.

◆ set_btn_name_ptr

typedef void(__thiscall * set_btn_name_ptr) (void *button, SF_String *string)

Definition at line 67 of file sf_wrappers.h.

◆ set_button_flag_ptr

typedef void(__thiscall * set_button_flag_ptr) (void *container, char flag)

Definition at line 56 of file sf_wrappers.h.

◆ set_label_color_ptr

typedef void(__thiscall * set_label_color_ptr) (CMnuLabel *_this, float r, float g, float b, char flag)

Definition at line 65 of file sf_wrappers.h.

◆ setup_menu_container_data_ptr

typedef void(__thiscall * setup_menu_container_data_ptr) (CMnuContainer *_this, float x, float y, float width, float height, SF_String *background, SF_String *border)

Definition at line 73 of file sf_wrappers.h.

◆ SF_String_ctor_ptr

typedef SF_String *(__thiscall * SF_String_ctor_ptr) (SF_String *, const char *)

Definition at line 7 of file sf_wrappers.h.

◆ SF_String_dtor_ptr

typedef void(__thiscall * SF_String_dtor_ptr) (SF_String *)

Definition at line 8 of file sf_wrappers.h.

◆ vfunction12_ptr

typedef void(__thiscall * vfunction12_ptr) (void *container, void *test, char p1)

Definition at line 53 of file sf_wrappers.h.

◆ vfunction2_callback_attach_ptr

typedef void(__thiscall * vfunction2_callback_attach_ptr) (void *, void *, void *, void *)

Definition at line 70 of file sf_wrappers.h.

◆ vfunction_2_ptr

typedef void(__thiscall * vfunction_2_ptr) (void *_this, void *input)

Definition at line 51 of file sf_wrappers.h.

◆ vfunction_ptr

typedef void(__thiscall * vfunction_ptr) (void *_this, char p1)

Definition at line 52 of file sf_wrappers.h.

Function Documentation

◆ spellEffectCallback()

void __thiscall spellEffectCallback ( SF_CGdSpell * _this,
uint16_t source_index,
uint16_t spell_index,
bool(* condition )(SF_CGdSpell *_this, uint16_t spell_index, uint16_t walked_index),
void(* callback )(SF_CGdSpell *_this, uint16_t source_index, uint16_t walked_index, uint16_t spell_index) )
extern