feat(glue): handle ChangeRealm script function

This commit is contained in:
fallenoak 2023-02-18 16:32:27 -06:00 committed by GitHub
parent dd322572c7
commit 009225be3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 92 additions and 1 deletions

View file

@ -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;

View file

@ -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);
};