An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
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);
}