Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_wrappers.c File Reference
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sf_wrappers.h"
#include "sf_hooks.h"
#include "hooks/sf_menu_hook.h"
#include "hooks/sf_console_hook.h"
#include "../registry/sf_mod_registry.h"
Include dependency graph for sf_wrappers.c:

Go to the source code of this file.

Functions

void initialize_wrapper_data_hooks ()
 
void log_message (const char *filename, const char *message)
 
void log_warning (const char *message)
 
void log_info (const char *message)
 
void log_error (const char *message)
 
SFLogsetup_logger ()
 
bool __thiscall isActionMelee (SF_SGtFigureAction *_this)
 
void __thiscall setupFigureIterator (CGdFigureIterator *iterator, SF_CGdSpell *spell)
 
bool __thiscall hasSpellTag (uint16_t spell_id, SpellTag tag)
 
uint32_t getDistance (SF_Coord *pointA, SF_Coord *pointB)
 
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 source_index, uint16_t spell_index), void(*callback)(SF_CGdSpell *_this, uint16_t source_index, uint16_t spell_index))
 
void __thiscall addBonusMultToStatistic (SF_CGdFigure *figure, StatisticDataKey key, uint16_t target, int8_t value)
 
void __thiscall spellClearFigureFlag (SF_CGdSpell *_this, uint16_t spell_id, SpellFlagKey key)
 
bool __thiscall hasAuraActive (SF_CGdFigureToolbox *_this, uint16_t figure_id)
 
CMnuLabel *__thiscall attach_new_label (CMnuLabel *label_ptr, CMnuContainer *parent, char *label_chars, uint8_t font_index, uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height)
 
void wrap_text (const char *input, char *output, size_t max_width)
 
void attach_mod_labels (CMnuContainer *container, int mods_per_page, int page)
 
void __fastcall navigate_callback_left (CMnuSmpButton *button, int32_t *cui_menu_ptr_maybe)
 
void __fastcall navigate_callback_right (CMnuSmpButton *button, int32_t *cui_menu_ptr_maybe)
 
void __thiscall show_mod_list (CMnuSmpButton *button)
 
void __fastcall show_mod_list_callback (CMnuSmpButton *button, int32_t *cui_menu_ptr_maybe)
 
void __thiscall attach_new_button (CMnuContainer *parent, char *button_mesh_default, char *button_mesh_pressed, char *button_initial_load_mesh, char *button_mesh_disabled, char *label_char, uint8_t font_index, uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height, int button_index, uint32_t callback_func_ptr)
 
CMnuLabel *__thiscall attach_new_meshed_label (CMnuLabel *new_label, CMnuContainer *parent, char *mesh_char, char *label_char, uint8_t font_index, uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height)
 
uint16_t __thiscall sf_get_spell_id (SF_CGdSpell *_this, uint16_t spell_index)
 
SFModcreateModInfo (const char *mod_id, const char *mod_version, const char *mod_author, const char *mod_description)
 
void attachVideo (CAppMenu *CAppMenu_ptr, CMnuContainer *parent, char *video_loc_and_name_chars)
 

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
 
CMnuBase_setname_ptr CMnuBase_setname
 
SFLog sf_logger
 
SFSF_ModlistStruct modinformation
 
CMnuContainermod_list