1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Object/ObjectPacket.hpp

35 lines
838 B
C++

#ifndef OPENMW_OBJECTPACKET_HPP
#define OPENMW_OBJECTPACKET_HPP
#include <string>
#include <RakNetTypes.h>
#include <BitStream.h>
#include <PacketPriority.h>
#include <components/openmw-mp/Base/BaseObject.hpp>
#include <components/openmw-mp/Packets/BasePacket.hpp>
namespace mwmp
{
class ObjectPacket : public BasePacket
{
public:
ObjectPacket(RakNet::RakPeerInterface *peer);
~ObjectPacket();
void setObjectList(BaseObjectList *objectList);
virtual void Packet(RakNet::BitStream *bs, bool send);
protected:
virtual void Object(BaseObject &baseObject, bool send);
bool PacketHeader(RakNet::BitStream *bs, bool send);
BaseObjectList *objectList;
static const int maxObjects = 3000;
bool hasCellData;
};
}
#endif //OPENMW_OBJECTPACKET_HPP