1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Add server script callbacks for attribute and skill changes

This commit is contained in:
David Cernat 2016-08-23 03:04:22 +03:00
parent 03d6e0cb62
commit 7691bcc958
2 changed files with 6 additions and 0 deletions

View file

@ -176,6 +176,8 @@ void Networking::Update(RakNet::Packet *packet)
{
myPacket->Read(player);
myPacket->Send(player, true);
Script::Call<Script::CallbackIdentity("OnPlayerChangeAttributes")>(player->GetID());
}
break;
@ -187,6 +189,8 @@ void Networking::Update(RakNet::Packet *packet)
{
myPacket->Read(player);
myPacket->Send(player, true);
Script::Call<Script::CallbackIdentity("OnPlayerChangeSkills")>(player->GetID());
}
break;

View file

@ -266,6 +266,8 @@ public:
{"OnPlayerDeath", Function<void, unsigned short>()},
{"OnPlayerResurrect", Function<void, unsigned short>()},
{"OnPlayerChangeCell", Function<void, unsigned short>()},
{"OnPlayerChangeAttributes", Function<void, unsigned short>()},
{"OnPlayerChangeSkills", Function<void, unsigned short>()},
{"OnPlayerUpdateEquiped", Function<void, unsigned short>()},
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
{"OnPlayerEndCharGen", Function<void, unsigned short>()},