You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components/openmw-mp/Packets/Worldstate/PacketWorldWeather.cpp

23 lines
680 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 *bs, bool send)
{
WorldstatePacket::Packet(bs, 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);
}