mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
23 lines
583 B
C++
23 lines
583 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketWorldTime.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketWorldTime::PacketWorldTime(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
|
|
{
|
|
packetID = ID_WORLD_TIME;
|
|
orderChannel = CHANNEL_WORLDSTATE;
|
|
}
|
|
|
|
void PacketWorldTime::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
WorldstatePacket::Packet(bs, send);
|
|
|
|
RW(worldstate->hour, send);
|
|
RW(worldstate->day, send);
|
|
RW(worldstate->month, send);
|
|
RW(worldstate->year, send);
|
|
|
|
RW(worldstate->daysPassed, send);
|
|
RW(worldstate->timeScale, send);
|
|
}
|