#include #include #include #include "WorldstatePacket.hpp" using namespace mwmp; WorldstatePacket::WorldstatePacket(RakNet::RakPeerInterface *peer) : BasePacket(peer) { worldstate = nullptr; packetID = 0; priority = HIGH_PRIORITY; reliability = RELIABLE_ORDERED; orderChannel = CHANNEL_WORLDSTATE; this->peer = peer; } WorldstatePacket::~WorldstatePacket() { } void WorldstatePacket::setWorldstate(BaseWorldstate *worldstate) { this->worldstate = worldstate; guid = worldstate->guid; } BaseWorldstate *WorldstatePacket::getWorldstate() { return worldstate; }