mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 16:19:54 +00:00
35 lines
861 B
C++
35 lines
861 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 *newObjectList);
|
|
|
|
virtual void Packet(RakNet::BitStream *newBitstream, bool send);
|
|
|
|
protected:
|
|
virtual void Object(BaseObject &baseObject, bool send);
|
|
bool PacketHeader(RakNet::BitStream *newBitstream, bool send);
|
|
BaseObjectList *objectList;
|
|
static const int maxObjects = 3000;
|
|
bool hasCellData;
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_OBJECTPACKET_HPP
|