mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 15:19:55 +00:00
23 lines
633 B
C++
23 lines
633 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 *newBitstream, bool send)
|
|
{
|
|
WorldstatePacket::Packet(newBitstream, send);
|
|
|
|
RW(worldstate->time.hour, send);
|
|
RW(worldstate->time.day, send);
|
|
RW(worldstate->time.month, send);
|
|
RW(worldstate->time.year, send);
|
|
|
|
RW(worldstate->time.daysPassed, send);
|
|
RW(worldstate->time.timeScale, send);
|
|
}
|