feat(glue): handle ChangeRealm script function

This commit is contained in:
fallenoak authored and GitHub committed 2023-02-18 16:32:27 -06:00
1 parent dd322572c7
commit 009225be3d
7 files changed
+92 -1

No files matched your search

+9
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;
+3
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);
};