mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-04 16:49:47 -03:00
51 lines
810 B
C++
51 lines
810 B
C++
#include "Game/RealmUser.hpp"
|
|
#include "Game/RealmCharacter.hpp"
|
|
|
|
RealmUser::RealmUser()
|
|
{
|
|
sock = nullptr;
|
|
|
|
m_gameType = RealmGameType::CHAMPIONS_OF_NORRATH;
|
|
|
|
m_accountId = -1;
|
|
m_sessionId = L"";
|
|
m_username = L"";
|
|
m_characterId = 0;
|
|
|
|
m_localAddr = "";
|
|
m_discoveryAddr = "";
|
|
m_discoveryPort = 0;
|
|
|
|
m_isLoggedIn = false;
|
|
m_isHost = false;
|
|
m_gameId = -1;
|
|
m_publicRoomId = -1;
|
|
m_privateRoomId = -1;
|
|
}
|
|
|
|
RealmUser::~RealmUser()
|
|
{
|
|
if( sock )
|
|
{
|
|
sock->flag.disconnected_wait = true;
|
|
sock.reset();
|
|
}
|
|
|
|
m_gameType = RealmGameType::CHAMPIONS_OF_NORRATH;
|
|
|
|
m_accountId = 0;
|
|
m_sessionId = L"";
|
|
m_username = L"";
|
|
m_characterId = 0;
|
|
|
|
m_localAddr = "";
|
|
m_discoveryAddr = "";
|
|
m_discoveryPort = 0;
|
|
|
|
m_isLoggedIn = false;
|
|
m_isHost = false;
|
|
m_gameId = 0;
|
|
m_publicRoomId = -1;
|
|
m_privateRoomId = -1;
|
|
}
|