mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
31 lines
950 B
C++
31 lines
950 B
C++
|
|
#ifndef CLIENT_CLIENT_SERVICES_HPP
|
||
|
|
#define CLIENT_CLIENT_SERVICES_HPP
|
||
|
|
|
||
|
|
#include "net/login/LoginResponse.hpp"
|
||
|
|
|
||
|
|
class ClientConnection;
|
||
|
|
class Login;
|
||
|
|
class RealmResponse;
|
||
|
|
|
||
|
|
class ClientServices : public LoginResponse {
|
||
|
|
public:
|
||
|
|
// Static variables
|
||
|
|
static RealmResponse* s_clientRealmResponse;
|
||
|
|
static ClientConnection* s_currentConnection;
|
||
|
|
static ClientServices* s_instance;
|
||
|
|
static Login* s_loginObj;
|
||
|
|
static bool s_newLogin;
|
||
|
|
|
||
|
|
// Static functions
|
||
|
|
static ClientConnection* Connection();
|
||
|
|
static ClientServices* GetInstance();
|
||
|
|
static void Initialize();
|
||
|
|
static Login* LoginConnection();
|
||
|
|
static void Logon(const char* accountName, const char* password);
|
||
|
|
|
||
|
|
// Virtual member functions
|
||
|
|
virtual void LoginServerStatus(LOGIN_STATE state, LOGIN_RESULT result, const char* addrStr, const char* stateStr, const char* resultStr, uint16_t a7);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|