[Server] Rename OnPlayerCellLoad to OnPlayerCellState, add action param

This commit is contained in:
David Cernat 2017-01-26 14:18:47 +02:00
parent 244da19a51
commit 96bd21a7ca
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_CELL_STATE from %s", LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_CELL_STATE from %s",
player->npc.mName.c_str()); player->npc.mName.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerCellLoad")>(player->getId()); Script::Call<Script::CallbackIdentity("OnPlayerCellState")>(player->getId(), player->cellStateChanges.action);
break; break;
} }

View file

@ -107,7 +107,7 @@ public:
{"OnPlayerDeath", Function<void, unsigned short, short, unsigned short>()}, {"OnPlayerDeath", Function<void, unsigned short, short, unsigned short>()},
{"OnPlayerResurrect", Function<void, unsigned short>()}, {"OnPlayerResurrect", Function<void, unsigned short>()},
{"OnPlayerCellChange", Function<void, unsigned short>()}, {"OnPlayerCellChange", Function<void, unsigned short>()},
{"OnPlayerCellLoad", Function<void, unsigned short>()}, {"OnPlayerCellState", Function<void, unsigned short, int>()},
{"OnPlayerAttributesChange", Function<void, unsigned short>()}, {"OnPlayerAttributesChange", Function<void, unsigned short>()},
{"OnPlayerSkillsChange", Function<void, unsigned short>()}, {"OnPlayerSkillsChange", Function<void, unsigned short>()},
{"OnPlayerLevelChange", Function<void, unsigned short>()}, {"OnPlayerLevelChange", Function<void, unsigned short>()},