1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:19:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Worldstate/PacketWorldWeather.cpp

22 lines
700 B
C++

#include "PacketWorldWeather.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketWorldWeather::PacketWorldWeather(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
{
packetID = ID_WORLD_WEATHER;
orderChannel = CHANNEL_WORLDSTATE;
}
void PacketWorldWeather::Packet(RakNet::BitStream *newBitstream, bool send)
{
WorldstatePacket::Packet(newBitstream, send);
RW(worldstate->forceWeather, send);
RW(worldstate->weather.region, send, true);
RW(worldstate->weather.currentWeather, send);
RW(worldstate->weather.nextWeather, send);
RW(worldstate->weather.queuedWeather, send);
RW(worldstate->weather.transitionFactor, send);
}