Reorganized and cleaned up the solution.

This commit is contained in:
HikikoMarmy
2026-03-02 12:37:07 +00:00
parent 8012f30170
commit d4dfbddf69
175 changed files with 1516 additions and 1136 deletions

50
Source/Game/RealmUser.cpp Normal file
View 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;
}