aboutsummaryrefslogtreecommitdiff
path: root/src/querymanager.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-07-17 01:02:33 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-07-17 01:02:33 -0300
commit29f6d814a276af83d9fb98a398ac8d22d8b6e9c1 (patch)
treed53f953a3c55fcadbcc2fbcdabb0848e56f81fc7 /src/querymanager.hh
parent5463c34177066b9860c9d77c6d7d59c265052399 (diff)
downloadquerymanager-29f6d814a276af83d9fb98a398ac8d22d8b6e9c1.tar.gz
querymanager-29f6d814a276af83d9fb98a398ac8d22d8b6e9c1.zip
impl LOGIN_ACCOUNT to be used with the login server
Diffstat (limited to 'src/querymanager.hh')
-rw-r--r--src/querymanager.hh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/querymanager.hh b/src/querymanager.hh
index ef37de1..9b358ce 100644
--- a/src/querymanager.hh
+++ b/src/querymanager.hh
@@ -549,6 +549,7 @@ enum : int {
enum : int {
QUERY_LOGIN = 0,
QUERY_CHECK_ACCOUNT_PASSWORD = 10,
+ QUERY_LOGIN_ACCOUNT = 11,
QUERY_LOGIN_ADMIN = 12,
QUERY_LOGIN_GAME = 20,
QUERY_LOGOUT_GAME = 21,
@@ -639,6 +640,7 @@ void SendQueryStatusError(TConnection *Connection, int ErrorCode);
void SendQueryStatusFailed(TConnection *Connection);
void ProcessLoginQuery(TConnection *Connection, TReadBuffer *Buffer);
void ProcessCheckAccountPasswordQuery(TConnection *Connection, TReadBuffer *Buffer);
+void ProcessLoginAccountQuery(TConnection *Connection, TReadBuffer *Buffer);
void ProcessLoginAdminQuery(TConnection *Connection, TReadBuffer *Buffer);
void ProcessLoginGameQuery(TConnection *Connection, TReadBuffer *Buffer);
void ProcessLogoutGameQuery(TConnection *Connection, TReadBuffer *Buffer);
@@ -705,7 +707,7 @@ struct TAccountData{
int AccountID;
char Email[100];
uint8 Auth[64];
- bool Premium;
+ int PremiumDays;
int PendingPremiumDays;
bool Deleted;
};
@@ -715,6 +717,13 @@ struct TAccountBuddy{
char Name[30];
};
+struct TCharacterLoginData{
+ char Name[30];
+ char WorldName[30];
+ int WorldAddress;
+ int WorldPort;
+};
+
struct TCharacterData{
int WorldID;
int CharacterID;
@@ -826,6 +835,7 @@ bool GetWorldConfig(int WorldID, TWorldConfig *WorldConfig);
bool GetAccountData(int AccountID, TAccountData *Account);
int GetAccountOnlineCharacters(int AccountID);
bool ActivatePendingPremiumDays(int AccountID);
+bool GetCharacterList(int AccountID, DynamicArray<TCharacterLoginData> *Characters);
int GetCharacterID(int WorldID, const char *CharacterName);
bool GetCharacterData(const char *CharacterName, TCharacterData *Character);
bool GetCharacterRight(int CharacterID, const char *Right);