mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-10 16:33:39 +03:00
feat(glue): handle ChangeRealm script function
This commit is contained in:
1 parent
dd322572c7
commit
009225be3d
7 files changed
+92
-1
No files matched your search
@@ -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);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user