2018-05-18 03:40:28 +00:00
|
|
|
#ifndef OPENMW_WORLDSTATEPACKET_HPP
|
|
|
|
#define OPENMW_WORLDSTATEPACKET_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <RakNetTypes.h>
|
|
|
|
#include <BitStream.h>
|
|
|
|
#include <PacketPriority.h>
|
|
|
|
#include <components/openmw-mp/Base/BaseWorldstate.hpp>
|
|
|
|
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class WorldstatePacket : public BasePacket
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WorldstatePacket(RakNet::RakPeerInterface *peer);
|
|
|
|
|
|
|
|
~WorldstatePacket();
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void setWorldstate(BaseWorldstate *newWorldstate);
|
2018-05-18 03:40:28 +00:00
|
|
|
BaseWorldstate *getWorldstate();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
BaseWorldstate *worldstate;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_WORLDSTATEPACKET_HPP
|