forked from mirror/openmw-tes3mp
[Server] Add SendObjectTrap() script function
This commit is contained in:
parent
7ac115b359
commit
93aa674eff
2 changed files with 16 additions and 8 deletions
|
@ -263,18 +263,24 @@ void WorldFunctions::SendObjectPlace() noexcept
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_PLACE)->Send(writeEvent.guid);
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_PLACE)->Send(writeEvent.guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldFunctions::SendObjectScale() noexcept
|
|
||||||
{
|
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_SCALE)->setEvent(&writeEvent);
|
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_SCALE)->Send(writeEvent.guid);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WorldFunctions::SendObjectLock() noexcept
|
void WorldFunctions::SendObjectLock() noexcept
|
||||||
{
|
{
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_LOCK)->setEvent(&writeEvent);
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_LOCK)->setEvent(&writeEvent);
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_LOCK)->Send(writeEvent.guid);
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_LOCK)->Send(writeEvent.guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WorldFunctions::SendObjectTrap() noexcept
|
||||||
|
{
|
||||||
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_TRAP)->setEvent(&writeEvent);
|
||||||
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_TRAP)->Send(writeEvent.guid);
|
||||||
|
}
|
||||||
|
|
||||||
|
void WorldFunctions::SendObjectScale() noexcept
|
||||||
|
{
|
||||||
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_SCALE)->setEvent(&writeEvent);
|
||||||
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_OBJECT_SCALE)->Send(writeEvent.guid);
|
||||||
|
}
|
||||||
|
|
||||||
void WorldFunctions::SendDoorState() noexcept
|
void WorldFunctions::SendDoorState() noexcept
|
||||||
{
|
{
|
||||||
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_DOOR_STATE)->setEvent(&writeEvent);
|
mwmp::Networking::get().getWorldPacketController()->GetPacket(ID_DOOR_STATE)->setEvent(&writeEvent);
|
||||||
|
|
|
@ -55,8 +55,9 @@
|
||||||
\
|
\
|
||||||
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
||||||
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
||||||
{"SendObjectScale", WorldFunctions::SendObjectScale},\
|
|
||||||
{"SendObjectLock", WorldFunctions::SendObjectLock},\
|
{"SendObjectLock", WorldFunctions::SendObjectLock},\
|
||||||
|
{"SendObjectTrap", WorldFunctions::SendObjectTrap},\
|
||||||
|
{"SendObjectScale", WorldFunctions::SendObjectScale},\
|
||||||
{"SendDoorState", WorldFunctions::SendDoorState},\
|
{"SendDoorState", WorldFunctions::SendDoorState},\
|
||||||
{"SendContainer", WorldFunctions::SendContainer},\
|
{"SendContainer", WorldFunctions::SendContainer},\
|
||||||
\
|
\
|
||||||
|
@ -121,8 +122,9 @@ public:
|
||||||
|
|
||||||
static void SendObjectDelete() noexcept;
|
static void SendObjectDelete() noexcept;
|
||||||
static void SendObjectPlace() noexcept;
|
static void SendObjectPlace() noexcept;
|
||||||
static void SendObjectScale() noexcept;
|
|
||||||
static void SendObjectLock() noexcept;
|
static void SendObjectLock() noexcept;
|
||||||
|
static void SendObjectTrap() noexcept;
|
||||||
|
static void SendObjectScale() noexcept;
|
||||||
static void SendDoorState() noexcept;
|
static void SendDoorState() noexcept;
|
||||||
static void SendContainer() noexcept;
|
static void SendContainer() noexcept;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue