[Server] Remove arguments from OnObjectPlace & OnObjectDelete callbacks

pull/163/head
David Cernat 8 years ago
parent 2cecce6c72
commit 5989bbd97e

@ -435,11 +435,7 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
{
worldObject = worldEvent->objectChanges.objects[i];
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(
player->getId(),
worldObject.refId.c_str(),
(int)worldObject.refNumIndex,
worldEvent->cell.getDescription().c_str());
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(player->getId());
}
break;
@ -459,11 +455,7 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
{
worldObject = worldEvent->objectChanges.objects[i];
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(
player->getId(),
worldObject.refId.c_str(),
(int)worldObject.refNumIndex,
worldEvent->cell.getDescription().c_str());
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(player->getId());
}
break;

@ -117,8 +117,8 @@ public:
{"OnPlayerInventoryChange", Function<void, unsigned short>()},
{"OnPlayerSpellbookChange", Function<void, unsigned short, int>()},
{"OnPlayerJournalChange", Function<void, unsigned short>()},
{"OnObjectPlace", Function<void, unsigned short, const char*, int, const char*>()},
{"OnObjectDelete", Function<void, unsigned short, const char*, int, const char*>()},
{"OnObjectPlace", Function<void, unsigned short>()},
{"OnObjectDelete", Function<void, unsigned short>()},
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}

Loading…
Cancel
Save