1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:23:52 +00:00

[Server] Add SendActorPosition() script function

This commit is contained in:
David Cernat 2017-05-01 20:58:40 +03:00
parent e5e888ac21
commit 4c35c328a9
2 changed files with 8 additions and 0 deletions

View file

@ -236,6 +236,12 @@ void ActorFunctions::SendActorAuthority() noexcept
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY)->Send(writeActorList.guid); mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY)->Send(writeActorList.guid);
} }
void ActorFunctions::SendActorPosition() noexcept
{
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_POSITION)->setActorList(&writeActorList);
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_POSITION)->Send(writeActorList.guid);
}
void ActorFunctions::SendActorStatsDynamic() noexcept void ActorFunctions::SendActorStatsDynamic() noexcept
{ {
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_STATS_DYNAMIC)->setActorList(&writeActorList); mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_STATS_DYNAMIC)->setActorList(&writeActorList);

View file

@ -53,6 +53,7 @@
\ \
{"SendActorList", ActorFunctions::SendActorList},\ {"SendActorList", ActorFunctions::SendActorList},\
{"SendActorAuthority", ActorFunctions::SendActorAuthority},\ {"SendActorAuthority", ActorFunctions::SendActorAuthority},\
{"SendActorPosition", ActorFunctions::SendActorPosition},\
{"SendActorStatsDynamic", ActorFunctions::SendActorStatsDynamic},\ {"SendActorStatsDynamic", ActorFunctions::SendActorStatsDynamic},\
{"SendActorCellChange", ActorFunctions::SendActorCellChange} {"SendActorCellChange", ActorFunctions::SendActorCellChange}
@ -111,6 +112,7 @@ public:
static void SendActorList() noexcept; static void SendActorList() noexcept;
static void SendActorAuthority() noexcept; static void SendActorAuthority() noexcept;
static void SendActorPosition() noexcept;
static void SendActorStatsDynamic() noexcept; static void SendActorStatsDynamic() noexcept;
static void SendActorCellChange() noexcept; static void SendActorCellChange() noexcept;
}; };