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:
parent
03d6e0cb62
commit
7691bcc958
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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>()},
|
||||
|
|
Loading…
Reference in a new issue