Fix protocol error #362

TODO:
Handle the helpers in LUA, it could be added into Battle Window i think,
if someone know where should this be comment here !
This commit is contained in:
Joao Pasqualini Costa
2013-10-20 18:31:20 -02:00
parent 8230bf2af4
commit 971d90a596
5 changed files with 26 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ void Game::processEnterGame()
g_lua.callGlobalField("g_game", "onEnterGame");
}
void Game::processGameStart()
{
m_online = true;
@@ -234,6 +235,11 @@ void Game::processGMActions(const std::vector<uint8>& actions)
g_lua.callGlobalField("g_game", "onGMActions", actions);
}
void Game::processPlayerHelpers(int helpers)
{
g_lua.callGlobalField("g_game", "onPlayerHelpersUpdate", helpers);
}
void Game::processPing()
{
g_lua.callGlobalField("g_game", "onPing");