mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
feat(client): prepare EnterWorld classes and methods
This commit is contained in:
parent
babeb2d864
commit
140bcde493
12 changed files with 93 additions and 7 deletions
|
|
@ -39,6 +39,7 @@ target_link_libraries(client
|
|||
console
|
||||
db
|
||||
event
|
||||
gameui
|
||||
gx
|
||||
model
|
||||
net
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include "console/Command.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "glue/CGlueMgr.hpp"
|
||||
#include "gameui/CGGameUI.hpp"
|
||||
#include "gx/Screen.hpp"
|
||||
#include "gx/Texture.hpp"
|
||||
#include "model/Model2.hpp"
|
||||
|
|
@ -662,3 +663,9 @@ void WowClientInit() {
|
|||
|
||||
EventRegister(EVENT_ID_POLL, &PollNet);
|
||||
}
|
||||
|
||||
void ClientInitializeGame(int32_t continentID, const C3Vector& position) {
|
||||
// TODO
|
||||
CGGameUI::InitializeGame();
|
||||
// TODO
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#define CLIENT_CLIENT_HPP
|
||||
|
||||
#include "event/Event.hpp"
|
||||
#include "tempest/Vector.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
class CVar;
|
||||
|
|
@ -27,4 +28,6 @@ void StormInitialize();
|
|||
|
||||
void WowClientInit();
|
||||
|
||||
void ClientInitializeGame(int32_t continentID, const C3Vector& position);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ void ClientServices::GetCharacterList() {
|
|||
ClientServices::s_currentConnection->GetCharacterList();
|
||||
}
|
||||
|
||||
void ClientServices::CharacterLogin(uint64_t id, const C3Vector& position) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
REALM_INFO* ClientServices::GetRealmInfoByIndex(int32_t index) {
|
||||
if (index >= ClientServices::GetInstance()->m_realmList.Count()) {
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#define CLIENT_CLIENT_SERVICES_HPP
|
||||
|
||||
#include "net/login/LoginResponse.hpp"
|
||||
#include <tempest/Vector.hpp>
|
||||
|
||||
class ClientConnection;
|
||||
class CVar;
|
||||
|
|
@ -35,6 +36,7 @@ class ClientServices : public LoginResponse {
|
|||
static ClientServices* GetInstance();
|
||||
static void GetRealmList();
|
||||
static void GetCharacterList();
|
||||
static void CharacterLogin(uint64_t id, const C3Vector& position);
|
||||
static REALM_INFO* GetRealmInfoByIndex(int32_t index);
|
||||
static const char* GetSelectedRealmName();
|
||||
static const REALM_INFO* GetSelectedRealm();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue