feat(glue): implement CGlueMgr::EnterWorld

This commit is contained in:
fallenoak committed 2025-10-06 21:55:47 -05:00
1 parent 119fa8996b
commit 78b5637ff9
8 files changed
+121 -1

No files matched your search

+7
View File
@@ -12,6 +12,7 @@
ClientConnection* g_clientConnection;
char ClientServices::s_accountName[1280];
CHARACTER_INFO ClientServices::s_characterInfo;
RealmResponse* ClientServices::s_clientRealmResponse;
ClientConnection* ClientServices::s_currentConnection;
CVar* ClientServices::s_darkPortalVar;
@@ -266,6 +267,12 @@ void ClientServices::SetAccountName(const char* accountName) {
SStrCopy(ClientServices::s_accountName, accountName, sizeof(ClientServices::s_accountName));
}
void ClientServices::SetCharacterInfo(const CHARACTER_INFO* info) {
STORM_ASSERT(info);
ClientServices::s_characterInfo = *info;
}
void ClientServices::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param) {
STORM_ASSERT(handler);
STORM_ASSERT(ClientServices::s_currentConnection);
+2
View File
@@ -13,6 +13,7 @@ class ClientServices : public LoginResponse {
public:
// Static variables
static char s_accountName[1280];
static CHARACTER_INFO s_characterInfo;
static RealmResponse* s_clientRealmResponse;
static ClientConnection* s_currentConnection;
static CVar* s_darkPortalVar;
@@ -42,6 +43,7 @@ class ClientServices : public LoginResponse {
static void Logon(const char* accountName, const char* password);
static void SelectRealm(const char* realmName);
static void SetAccountName(const char* accountName);
static void SetCharacterInfo(const CHARACTER_INFO* info);
static void SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param);
static int32_t SetSelectedRealmInfo(int32_t a1);