mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(glue): implement CGlueMgr::EnterWorld
This commit is contained in:
8 files changed
+121
-1
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user