openmw-tes3coop/components/openmw-mp/Packets/Player/PacketGameWeather.cpp
2017-12-10 09:48:29 +08:00

17 lines
408 B
C++

#include "PacketGameWeather.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketGameWeather::PacketGameWeather(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_GAME_WEATHER;
orderChannel = CHANNEL_SYSTEM;
}
void PacketGameWeather::Packet(RakNet::BitStream *bs, bool send)
{
PlayerPacket::Packet(bs, send);
RW(player->weather, send);
}