mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 00:49:48 -03:00
Reorganized and cleaned up the solution.
This commit is contained in:
50
Source/Game/RealmUser.cpp
Normal file
50
Source/Game/RealmUser.cpp
Normal file
@@ -0,0 +1,50 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user