-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCallbackDefines.hpp
131 lines (122 loc) · 3.68 KB
/
CallbackDefines.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#pragma once
#include "CommonDefines.hpp"
namespace Babel
{
struct LogInInfo {
const char* User;
int UserLen;
const char* Password;
int PasswordLen;
int StoreCredentials;
};
struct NewAccountInfo {
const char* User;
int UserLen;
const char* Password;
int PasswordLen;
const char* Name;
int NameLen;
const char* Surname;
int SurnameLen;
};
struct SingleStringParam {
const char* Str;
int Len;
};
struct DoubleStringParam {
const char* FirstStr;
int FirstLen;
const char* SecondStr;
int SecondLen;
};
struct TripleStringParam {
const char* FirstStr;
int FirstLen;
const char* SecondStr;
int SecondLen;
const char* ThirdStr;
int ThirdLen;
};
struct NewCharacterInfo {
const char* NameStr;
int NameLen;
int Gender;
int Race;
int Class;
int Head;
int City;
};
typedef void(__stdcall* TLogInCallback)(LogInInfo*);
typedef void(__stdcall* TCreateAccountCallback)(NewAccountInfo*);
typedef void(__stdcall* TVoidParam)(void);
typedef void(__stdcall* TSetHost)(SingleStringParam*);
typedef void(__stdcall* TValidateAccount)(DoubleStringParam* );
typedef void(__stdcall* TResendValidationCode)(SingleStringParam*);
typedef void(__stdcall* TRequestPasswordReset)(SingleStringParam*);
typedef void(__stdcall* TNewPasswordRequest)(TripleStringParam*);
typedef void(__stdcall* TSelectCharacter)(int);
typedef void(__stdcall* TLoginCharacterIndex)(int);
typedef void(__stdcall* TCreateCharacter)(NewCharacterInfo*);
typedef void(__stdcall* TIntStringF)(int, SingleStringParam*);
struct CallbacksList
{
TLogInCallback Login;
TCreateAccountCallback CreateAccount;
TVoidParam CloseClient;
TSetHost SetHost;
TValidateAccount ValidateAccount;
TResendValidationCode ResendValidationCode;
TRequestPasswordReset RequestPasswordReset;
TNewPasswordRequest NewPasswordRequest;
TSelectCharacter SelectCharacter;
TLoginCharacterIndex LoginWithCharacter;
TVoidParam ReturnToLogin;
TCreateCharacter CreateCharacter;
TSelectCharacter RequestDeleteCharacter;
TIntStringF ConfirmDeleteCharacter;
TIntStringF TransferCharacter;
};
typedef void(__stdcall* TSingleStringParam)(SingleStringParam*);
typedef void(__stdcall* TDoubleStringParam)(DoubleStringParam*);
typedef void(__stdcall* TSingleIntParam)(int);
typedef void(__stdcall* TSingleBoolParam)(int);
typedef void(__stdcall* TDoubleIntParam)(int, int);
typedef void(__stdcall* TUpdateHoykeySlot)(int,const Babel::HotkeySlot*);
typedef void(__stdcall* NewScenario)(const ScenarioSettings*, DoubleStringParam*);
typedef void(__stdcall* JoinScenario)(int, SingleStringParam*);
typedef void(__stdcall* TUpdateSkillList)(int, int*);
struct GameplayCallbacks
{
TSingleStringParam HandleConsoleMsg;
TSingleStringParam ShowDialog;
TSingleIntParam SelectInvSlot;
TSingleIntParam UseInvSlot;
TSingleIntParam SelectSpellSlot;
TSingleIntParam UseSpellSlot;
TSingleBoolParam UpdateFocus;
TSingleBoolParam UpdateOpenDialog;
TSingleStringParam OpenLink;
TVoidParam ClickGold;
TDoubleIntParam MoveInvItem;
TDoubleIntParam RequestAction;
TSingleIntParam UseKey;
TDoubleIntParam MoveSpellSlot;
TSingleIntParam DeleteItem;
TSingleIntParam ScrollSpell;
TDoubleIntParam TeleportToMiniMapPos;
TDoubleIntParam UpdateCombatAndGlobalChatSettings;
TUpdateHoykeySlot UpdateHotKeySlot;
TSingleIntParam UpdateHideHotkeyState;
TSingleIntParam SendQuestionResponse;
TDoubleIntParam MoveMerchantSlot;
TVoidParam CloseMerchant;
TDoubleIntParam BuyItem;
TDoubleIntParam SellItem;
TSingleIntParam BuyAOShopItem;
TDoubleIntParam UpdateIntSetting;
NewScenario CreateNewScenario;
JoinScenario JoinSceneario;
TUpdateSkillList UpdateSkillList;
TDoubleStringParam SendGuildRequest;
};
}