mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(glue): handle ChangeRealm script function
This commit is contained in:
parent
dd322572c7
commit
009225be3d
7 changed files with 92 additions and 1 deletions
|
|
@ -141,6 +141,15 @@ void ClientConnection::Connect() {
|
|||
ClientServices::LoginConnection()->GetRealmList();
|
||||
}
|
||||
|
||||
int32_t ClientConnection::Disconnect() {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t ClientConnection::IsConnected() {
|
||||
return this->m_connected;
|
||||
}
|
||||
|
||||
int32_t ClientConnection::PollStatus(WOWCS_OPS& op, const char** msg, int32_t& result, int32_t& errorCode) {
|
||||
op = this->m_statusCop;
|
||||
errorCode = this->m_errorCode;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class RealmResponse;
|
|||
class ClientConnection : public RealmConnection {
|
||||
public:
|
||||
// Member variables
|
||||
int32_t m_connected = 0;
|
||||
int32_t m_statusComplete = 1;
|
||||
int32_t m_statusResult = 1;
|
||||
WOWCS_OPS m_statusCop = COP_NONE;
|
||||
|
|
@ -22,6 +23,8 @@ class ClientConnection : public RealmConnection {
|
|||
void Cancel(int32_t errorCode);
|
||||
void Cleanup();
|
||||
void Connect();
|
||||
int32_t Disconnect();
|
||||
int32_t IsConnected();
|
||||
int32_t PollStatus(WOWCS_OPS& op, const char** msg, int32_t& result, int32_t& errorCode);
|
||||
void SetStatus(int32_t result, int32_t errorCode);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue