mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 03:14:06 +00:00
[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];
|
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;
|
break;
|
||||||
|
@ -455,7 +457,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
|
||||||
{
|
{
|
||||||
worldObject = worldEvent->objectChanges.objects[i];
|
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;
|
break;
|
||||||
|
|
|
@ -117,8 +117,8 @@ public:
|
||||||
{"OnPlayerInventoryChange", Function<void, unsigned short>()},
|
{"OnPlayerInventoryChange", Function<void, unsigned short>()},
|
||||||
{"OnPlayerSpellbookChange", Function<void, unsigned short, int>()},
|
{"OnPlayerSpellbookChange", Function<void, unsigned short, int>()},
|
||||||
{"OnPlayerJournalChange", Function<void, unsigned short>()},
|
{"OnPlayerJournalChange", Function<void, unsigned short>()},
|
||||||
{"OnObjectPlace", Function<void, unsigned short>()},
|
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
||||||
{"OnObjectDelete", Function<void, unsigned short>()},
|
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
||||||
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
||||||
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
||||||
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}
|
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}
|
||||||
|
|
Loading…
Reference in a new issue