Spellforce-Spell-framework
|
Group of Structures and Enums used throught SFSF. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | DECLARE_FUNCTION(type, name, ...) |
Declares a function with the specified return type, name, and arguments. | |
Typedefs | |
typedef void(* | log_function_ptr) (const char *) |
typedef struct SF_CGdSpell | SF_CGdSpell |
typedef struct SF_CGdFigureToolbox | SF_CGdFigureToolbox |
typedef struct SF_GdEffect | SF_GdEffect |
typedef struct SF_CGDEffect | SF_CGDEffect |
typedef struct SF_CGdWorld | SF_CGdWorld |
typedef struct SF_CGdWorldToolBox | SF_CGdWorldToolBox |
typedef struct SF_CGdFigureJobs | SF_CGdFigureJobs |
typedef struct SF_CGdBuilding | SF_CGdBuilding |
typedef void(__thiscall * | console_print_ptr) (uint32_t, const char *) |
typedef uint16_t(__thiscall * | get_spell_spell_line_ptr) (void *, uint16_t) |
typedef uint32_t(__thiscall * | figure_toolbox_get_unkn_ptr) (void *, uint16_t) |
typedef void(__thiscall * | figure_toolbox_add_spell_ptr) (void *, uint16_t, uint16_t) |
typedef bool(__thiscall * | figure_toolbox_is_targetable_ptr) (void *CGdFigureToolbox, uint16_t figure_index) |
typedef uint32_t(__thiscall * | FUN_0069eaf0_ptr) (void *ac69, void *ac69_2, void *ac69_3, void *ac69_4) |
typedef void(* | fidfree_ptr) (uint32_t *memory_ptr) |
typedef void(__thiscall * | menu_label_ptr) (CMnuLabel *_this) |
typedef void(__thiscall * | menu_label_set_string_ptr) (CMnuLabel *_this, SF_String *string) |
typedef void(__thiscall * | initialize_menu_container_ptr) (CMnuContainer *_this) |
typedef SF_String *(__thiscall * | construct_default_sf_string_ptr) (SF_String *_this) |
typedef void(__thiscall * | construct_start_menu_ptr) (CUiStartMenu *_this, uint32_t p1) |
typedef void(__thiscall * | mnu_label_init_data_ptr) (void *_this, float xpos, float ypos, float width, float height, SF_String *string) |
typedef void(__thiscall * | message_box_ptr) (uint32_t CAppMenu, uint16_t description_id, SF_String *string_ptr, uint16_t hasOffset) |
typedef void(__thiscall * | menu_label_constructor_ptr) (CMnuLabel *_this) |
typedef void(__thiscall * | set_label_flags_ptr) (CMnuLabel *_this, uint32_t flags) |
typedef void(__fastcall * | original_menu_func_ptr) (uint32_t param1) |
typedef void *(__cdecl * | new_operator_ptr) (uint32_t param_1) |
typedef void(__thiscall * | container_add_control_ptr) (CMnuContainer *_this, CMnuBase *CMnubase, char c1, char c2, uint32_t p4) |
typedef void(__thiscall * | menu_label_set_data_ptr) (CMnuLabel *_this, uint32_t color_red, uint32_t color_green, uint32_t color_blue, uint8_t unknchar) |
typedef void(__thiscall * | get_sf_color_ptr) (SF_String *_this, uint32_t color_id) |
typedef SF_FontStruct *(__thiscall * | get_smth_fonts_ptr) (void) |
typedef SF_Font *(__thiscall * | get_font_ptr) (SF_FontStruct *_this, uint32_t font_id) |
typedef void(__thiscall * | menu_label_set_font_ptr) (void *_this, SF_Font *font) |
typedef CUiOption *(__thiscall * | create_option_ptr) (CUiOption *_this) |
typedef void(__thiscall * | autoclass113_fun_00a27530_ptr) (void *_this_autoclass113) |
typedef uint32_t *(__thiscall * | fun_0086dd60_ptr) (void *_this, uint8_t p1, uint32_t p2) |
typedef void(__thiscall * | autoclass113_fun_00a278c0_ptr) (void *_this_autoclass113, uint32_t p1) |
typedef uint16_t(__cdecl * | fun_00a2a1d0_ptr) (void *some_ptr, void *some_ptr_2) |
typedef void(__thiscall * | fun_00a49b10_ptr) (CGdControllerClient *_this, uint8_t param1) |
typedef uint32_t *(__thiscall * | fun_00a28d60_ptr) (void *_this, void *param1, uint32_t param2) |
typedef void(__thiscall * | fun_009a4020_ptr) (void *_this, uint32_t param1) |
typedef void(__thiscall * | vfun164_ptr) (void *CMnuContainer) |
typedef void(__thiscall * | vfun163_ptr) (void *CMnuContainer, uint8_t param1) |
typedef void *(__thiscall * | vfun41_ptr) (void *CMnuContainer) |
typedef uint32_t(__thiscall * | fun_006a0140_ptr) (void *_this, uint16_t p1, SF_CGdTargetData *p2_ptr, uint8_t p3, uint8_t p4) |
typedef void(__thiscall * | fun_009a2790_ptr) (void *_this, void *_p1, uint32_t p2) |
typedef uint32_t(__thiscall * | fun_0069f8d0_ptr) (void *_this, uint32_t p1) |
typedef uint32_t(__thiscall * | fun_0069fb90_ptr) (void *_this, uint16_t figure_id, uint8_t po2, uint16_t unkn_p3, SF_CGdTargetData *data, uint32_t p5, uint32_t p6) |
typedef bool(__thiscall * | getSpellLineIsTargetSelf_ptr) (void *_this, uint16_t spell_line_id) |
typedef void *(__thiscall * | fun_009a0750_ptr) (void *_this) |
typedef void *(__thiscall * | fun_009de190_ptr) (void *_this, void *param_1) |
typedef void(__thiscall * | fun_0099f610_ptr) (void *_this, uint16_t param1, uint16_t param2, uint8_t param3, uint16_t param4) |
typedef void(__thiscall * | fun_009cd1f0_ptr) (void *SF_CUiBottom, uint8_t param1) |
typedef void(__thiscall * | fun_009a1fd0_ptr) (void *SF_CUiGame, uint32_t param1) |
typedef uint32_t(__thiscall * | fun_006f8c06_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id, uint16_t spell_id, uint32_t target_id, uint8_t param4, uint32_t param5, uint32_t param6, uint32_t param7, uint32_t param8) |
typedef void(__thiscall * | fun_00910de0_ptr) (void *_this, void *param1, uint32_t param2) |
typedef uint32_t(__thiscall * | cuiVideoSequence_constructor_ptr) (SF_CUiVideo *_this, SF_String *p1) |
typedef void(__thiscall * | CMnuScreen_attach_control_ptr) (void *_CMnuScreen_ptr, CMnuBase *base, char flag) |
Functions | |
void | attachVideo (CAppMenu *CAppMenu_ptr, CMnuContainer *parent, char *video_loc_and_name_charsC) |
CMnuLabel *__thiscall | attach_new_meshed_label (CMnuLabel *label_ptr, CMnuContainer *parent, char *mesh_name, char *label_text, uint8_t font_index, uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height) |
CMnuLabel *__thiscall | attach_new_label (CMnuLabel *label_ptr, CMnuContainer *parent, char *label_text, uint8_t font_index, uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height) |
void __thiscall | attach_new_button (CMnuContainer *parent, char *button_mesh_default, char *button_mesh_pressed, char *button_mesh_highlight, 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_function_pointer) |
void __fastcall | show_mod_list_callback (CMnuSmpButton *button, int32_t *cui_menu_ptr_maybe) |
Variables | |
SFSF_ModlistStruct | mod_struct |
Group of Structures and Enums used throught SFSF.
Definition in file sf_general_structures.h.
#define DECLARE_FUNCTION | ( | type, | |
name, | |||
... ) |
Declares a function with the specified return type, name, and arguments.
This macro is used to define functions that we use for hooking into the game and to expose these to the API. we use it to cut down on boilerplate code typedefs and structures.
return_type | The return type of the function. |
function_name | The name of the function. |
... | The function parameters and types. |
Definition at line 1076 of file sf_general_structures.h.
typedef void(__thiscall * autoclass113_fun_00a27530_ptr) (void *_this_autoclass113) |
Definition at line 976 of file sf_general_structures.h.
typedef void(__thiscall * autoclass113_fun_00a278c0_ptr) (void *_this_autoclass113, uint32_t p1) |
Definition at line 980 of file sf_general_structures.h.
typedef void(__thiscall * CMnuScreen_attach_control_ptr) (void *_CMnuScreen_ptr, CMnuBase *base, char flag) |
Definition at line 1029 of file sf_general_structures.h.
typedef void(__thiscall * console_print_ptr) (uint32_t, const char *) |
Definition at line 922 of file sf_general_structures.h.
Definition at line 936 of file sf_general_structures.h.
typedef void(__thiscall * construct_start_menu_ptr) (CUiStartMenu *_this, uint32_t p1) |
Definition at line 939 of file sf_general_structures.h.
typedef void(__thiscall * container_add_control_ptr) (CMnuContainer *_this, CMnuBase *CMnubase, char c1, char c2, uint32_t p4) |
Definition at line 958 of file sf_general_structures.h.
Definition at line 973 of file sf_general_structures.h.
typedef uint32_t(__thiscall * cuiVideoSequence_constructor_ptr) (SF_CUiVideo *_this, SF_String *p1) |
Definition at line 1027 of file sf_general_structures.h.
typedef void(* fidfree_ptr) (uint32_t *memory_ptr) |
Definition at line 931 of file sf_general_structures.h.
typedef void(__thiscall * figure_toolbox_add_spell_ptr) (void *, uint16_t, uint16_t) |
Definition at line 925 of file sf_general_structures.h.
typedef uint32_t(__thiscall * figure_toolbox_get_unkn_ptr) (void *, uint16_t) |
Definition at line 924 of file sf_general_structures.h.
typedef bool(__thiscall * figure_toolbox_is_targetable_ptr) (void *CGdFigureToolbox, uint16_t figure_index) |
Definition at line 927 of file sf_general_structures.h.
typedef uint32_t(__thiscall * FUN_0069eaf0_ptr) (void *ac69, void *ac69_2, void *ac69_3, void *ac69_4) |
Definition at line 929 of file sf_general_structures.h.
typedef uint32_t(__thiscall * fun_0069f8d0_ptr) (void *_this, uint32_t p1) |
Definition at line 1002 of file sf_general_structures.h.
typedef uint32_t(__thiscall * fun_0069fb90_ptr) (void *_this, uint16_t figure_id, uint8_t po2, uint16_t unkn_p3, SF_CGdTargetData *data, uint32_t p5, uint32_t p6) |
Definition at line 1003 of file sf_general_structures.h.
typedef uint32_t(__thiscall * fun_006a0140_ptr) (void *_this, uint16_t p1, SF_CGdTargetData *p2_ptr, uint8_t p3, uint8_t p4) |
Definition at line 997 of file sf_general_structures.h.
typedef uint32_t(__thiscall * fun_006f8c06_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id, uint16_t spell_id, uint32_t target_id, uint8_t param4, uint32_t param5, uint32_t param6, uint32_t param7, uint32_t param8) |
Definition at line 1016 of file sf_general_structures.h.
typedef uint32_t *(__thiscall * fun_0086dd60_ptr) (void *_this, uint8_t p1, uint32_t p2) |
Definition at line 978 of file sf_general_structures.h.
typedef void(__thiscall * fun_00910de0_ptr) (void *_this, void *param1, uint32_t param2) |
Definition at line 1024 of file sf_general_structures.h.
typedef void(__thiscall * fun_0099f610_ptr) (void *_this, uint16_t param1, uint16_t param2, uint8_t param3, uint16_t param4) |
Definition at line 1011 of file sf_general_structures.h.
typedef void *(__thiscall * fun_009a0750_ptr) (void *_this) |
Definition at line 1009 of file sf_general_structures.h.
typedef void(__thiscall * fun_009a1fd0_ptr) (void *SF_CUiGame, uint32_t param1) |
Definition at line 1015 of file sf_general_structures.h.
typedef void(__thiscall * fun_009a2790_ptr) (void *_this, void *_p1, uint32_t p2) |
Definition at line 1000 of file sf_general_structures.h.
typedef void(__thiscall * fun_009a4020_ptr) (void *_this, uint32_t param1) |
Definition at line 991 of file sf_general_structures.h.
typedef void(__thiscall * fun_009cd1f0_ptr) (void *SF_CUiBottom, uint8_t param1) |
Definition at line 1014 of file sf_general_structures.h.
typedef void *(__thiscall * fun_009de190_ptr) (void *_this, void *param_1) |
Definition at line 1010 of file sf_general_structures.h.
typedef uint32_t *(__thiscall * fun_00a28d60_ptr) (void *_this, void *param1, uint32_t param2) |
Definition at line 989 of file sf_general_structures.h.
typedef uint16_t(__cdecl * fun_00a2a1d0_ptr) (void *some_ptr, void *some_ptr_2) |
Definition at line 984 of file sf_general_structures.h.
typedef void(__thiscall * fun_00a49b10_ptr) (CGdControllerClient *_this, uint8_t param1) |
Definition at line 986 of file sf_general_structures.h.
typedef SF_Font *(__thiscall * get_font_ptr) (SF_FontStruct *_this, uint32_t font_id) |
Definition at line 970 of file sf_general_structures.h.
typedef void(__thiscall * get_sf_color_ptr) (SF_String *_this, uint32_t color_id) |
Definition at line 967 of file sf_general_structures.h.
typedef SF_FontStruct *(__thiscall * get_smth_fonts_ptr) (void) |
Definition at line 969 of file sf_general_structures.h.
typedef uint16_t(__thiscall * get_spell_spell_line_ptr) (void *, uint16_t) |
Definition at line 923 of file sf_general_structures.h.
typedef bool(__thiscall * getSpellLineIsTargetSelf_ptr) (void *_this, uint16_t spell_line_id) |
Definition at line 1007 of file sf_general_structures.h.
typedef void(__thiscall * initialize_menu_container_ptr) (CMnuContainer *_this) |
Definition at line 935 of file sf_general_structures.h.
typedef void(* log_function_ptr) (const char *) |
Definition at line 22 of file sf_general_structures.h.
typedef void(__thiscall * menu_label_constructor_ptr) (CMnuLabel *_this) |
Definition at line 951 of file sf_general_structures.h.
typedef void(__thiscall * menu_label_ptr) (CMnuLabel *_this) |
Definition at line 932 of file sf_general_structures.h.
typedef void(__thiscall * menu_label_set_data_ptr) (CMnuLabel *_this, uint32_t color_red, uint32_t color_green, uint32_t color_blue, uint8_t unknchar) |
Definition at line 962 of file sf_general_structures.h.
typedef void(__thiscall * menu_label_set_font_ptr) (void *_this, SF_Font *font) |
Definition at line 972 of file sf_general_structures.h.
Definition at line 933 of file sf_general_structures.h.
typedef void(__thiscall * message_box_ptr) (uint32_t CAppMenu, uint16_t description_id, SF_String *string_ptr, uint16_t hasOffset) |
Definition at line 946 of file sf_general_structures.h.
typedef void(__thiscall * mnu_label_init_data_ptr) (void *_this, float xpos, float ypos, float width, float height, SF_String *string) |
Definition at line 942 of file sf_general_structures.h.
typedef void *(__cdecl * new_operator_ptr) (uint32_t param_1) |
Definition at line 957 of file sf_general_structures.h.
typedef void(__fastcall * original_menu_func_ptr) (uint32_t param1) |
Definition at line 955 of file sf_general_structures.h.
typedef void(__thiscall * set_label_flags_ptr) (CMnuLabel *_this, uint32_t flags) |
Definition at line 952 of file sf_general_structures.h.
typedef struct SF_CGdBuilding SF_CGdBuilding |
Definition at line 57 of file sf_general_structures.h.
typedef struct SF_CGDEffect SF_CGDEffect |
Definition at line 53 of file sf_general_structures.h.
typedef struct SF_CGdFigureJobs SF_CGdFigureJobs |
Definition at line 56 of file sf_general_structures.h.
typedef struct SF_CGdFigureToolbox SF_CGdFigureToolbox |
Definition at line 51 of file sf_general_structures.h.
typedef struct SF_CGdSpell SF_CGdSpell |
Definition at line 50 of file sf_general_structures.h.
typedef struct SF_CGdWorld SF_CGdWorld |
Definition at line 54 of file sf_general_structures.h.
typedef struct SF_CGdWorldToolBox SF_CGdWorldToolBox |
Definition at line 55 of file sf_general_structures.h.
typedef struct SF_GdEffect SF_GdEffect |
Definition at line 52 of file sf_general_structures.h.
typedef void(__thiscall * vfun163_ptr) (void *CMnuContainer, uint8_t param1) |
Definition at line 994 of file sf_general_structures.h.
typedef void(__thiscall * vfun164_ptr) (void *CMnuContainer) |
Definition at line 993 of file sf_general_structures.h.
typedef void *(__thiscall * vfun41_ptr) (void *CMnuContainer) |
Definition at line 995 of file sf_general_structures.h.
enum CGdEffectType |
Definition at line 875 of file sf_general_structures.h.
enum CGdFigureJobFlags : uint16_t |
Definition at line 122 of file sf_general_structures.h.
enum CGdFigureTask : uint8_t |
Enumerator | |
---|---|
TASK_WORKER | |
TASK_WOODCUTTER | |
TASK_QUARRY | |
TASK_MINE | |
TASK_FORGE | |
TASK_HERO | |
TASK_MAINCHAR | |
TASK_NPC | |
TASK_PET | |
TASK_HUNTING_LODGE | |
TASK_MERCHANT |
Definition at line 59 of file sf_general_structures.h.
enum GdFigureFlags |
Definition at line 86 of file sf_general_structures.h.
enum OnHitPhase |
Enumerator | |
---|---|
PHASE_0 | |
PHASE_1 | |
PHASE_2 | |
PHASE_3 | |
PHASE_4 | |
PHASE_5 | |
OnHitEnd |
Definition at line 74 of file sf_general_structures.h.
enum SpellDamagePhase |
Enumerator | |
---|---|
PRE | |
DEFAULT | |
POST | |
COUNT |
Definition at line 867 of file sf_general_structures.h.
enum SpellDataKey |
Definition at line 842 of file sf_general_structures.h.
enum SpellTag : uint16_t |
Definition at line 30 of file sf_general_structures.h.