mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
[Server] On second thought, keep cell description as argument to them
This commit is contained in:
parent
5989bbd97e
commit
b549da996e
@ -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…
x
Reference in New Issue
Block a user