forked from mirror/openmw-tes3mp
Add OnPlayerChangeInventory server script callback
This commit is contained in:
parent
6ff47bbde9
commit
107dacac6d
3 changed files with 5 additions and 1 deletions
|
@ -225,6 +225,9 @@ void Networking::ProcessPlayerPacket(RakNet::Packet *packet)
|
||||||
{
|
{
|
||||||
DEBUG_PRINTF("ID_GAME_INVENTORY\n");
|
DEBUG_PRINTF("ID_GAME_INVENTORY\n");
|
||||||
myPacket->Read(player);
|
myPacket->Read(player);
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnPlayerChangeInventory")>(player->GetID());
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ public:
|
||||||
{"OnPlayerChangeSkills", Function<void, unsigned short>()},
|
{"OnPlayerChangeSkills", Function<void, unsigned short>()},
|
||||||
{"OnPlayerChangeLevel", Function<void, unsigned short>()},
|
{"OnPlayerChangeLevel", Function<void, unsigned short>()},
|
||||||
{"OnPlayerChangeEquipment", Function<void, unsigned short>()},
|
{"OnPlayerChangeEquipment", Function<void, unsigned short>()},
|
||||||
|
{"OnPlayerChangeInventory", Function<void, unsigned short>()},
|
||||||
{"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*>()}
|
||||||
|
|
|
@ -59,11 +59,11 @@ void LocalPlayer::Update()
|
||||||
updateAttackState();
|
updateAttackState();
|
||||||
updateDeadState();
|
updateDeadState();
|
||||||
updateEquipped();
|
updateEquipped();
|
||||||
|
updateInventory();
|
||||||
updateDynamicStats();
|
updateDynamicStats();
|
||||||
updateAttributes();
|
updateAttributes();
|
||||||
updateSkills();
|
updateSkills();
|
||||||
updateLevel();
|
updateLevel();
|
||||||
updateInventory();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer::charGen(int stageFirst, int stageEnd)
|
void LocalPlayer::charGen(int stageFirst, int stageEnd)
|
||||||
|
|
Loading…
Reference in a new issue