forked from mirror/openmw-tes3mp
[Server] On second thought, keep cell description as argument to them
This commit is contained in:
parent
5989bbd97e
commit
b549da996e
2 changed files with 8 additions and 4 deletions
|
@ -435,7 +435,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
|
|||
{
|
||||
worldObject = worldEvent->objectChanges.objects[i];
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(player->getId());
|
||||
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(
|
||||
player->getId(),
|
||||
worldEvent->cell.getDescription().c_str());
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -455,7 +457,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
|
|||
{
|
||||
worldObject = worldEvent->objectChanges.objects[i];
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(player->getId());
|
||||
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(
|
||||
player->getId(),
|
||||
worldEvent->cell.getDescription().c_str());
|
||||
}
|
||||
|
||||
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>()},
|
||||
{"OnObjectDelete", Function<void, unsigned short>()},
|
||||
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
||||
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
||||
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
||||
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
||||
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}
|
||||
|
|
Loading…
Reference in a new issue