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.
24 lines
488 B
C++
24 lines
488 B
C++
//
|
|
// Created by koncord on 30.08.16.
|
|
//
|
|
|
|
#include "PacketGameTime.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketGameTime::PacketGameTime(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_GAME_TIME;
|
|
orderChannel = CHANNEL_SYSTEM;
|
|
}
|
|
|
|
void PacketGameTime::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
RW(player->month, send);
|
|
RW(player->day, send);
|
|
RW(player->hour, send);
|
|
}
|