mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:49:56 +00:00
20 lines
649 B
C++
20 lines
649 B
C++
#include "PacketWorldCollisionOverride.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketWorldCollisionOverride::PacketWorldCollisionOverride(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
|
|
{
|
|
packetID = ID_WORLD_COLLISION_OVERRIDE;
|
|
orderChannel = CHANNEL_WORLDSTATE;
|
|
}
|
|
|
|
void PacketWorldCollisionOverride::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
WorldstatePacket::Packet(bs, send);
|
|
|
|
RW(worldstate->hasPlayerCollision, send);
|
|
RW(worldstate->hasActorCollision, send);
|
|
RW(worldstate->hasPlacedObjectCollision, send);
|
|
RW(worldstate->useActorCollisionForPlacedObjects, send);
|
|
}
|