mirror of
https://github.com/edubart/otclient.git
synced 2025-12-24 16:57:11 +01:00
more refactoring
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "game.h"
|
||||
#include "localplayer.h"
|
||||
|
||||
Game g_game;
|
||||
|
||||
@@ -6,3 +7,15 @@ Game::Game()
|
||||
{
|
||||
m_online = false;
|
||||
}
|
||||
|
||||
void Game::onLogin()
|
||||
{
|
||||
m_localPlayer = LocalPlayerPtr(new LocalPlayer);
|
||||
m_online = true;
|
||||
}
|
||||
|
||||
void Game::onLogout()
|
||||
{
|
||||
m_localPlayer.reset();
|
||||
m_online = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user