#ifndef OPENMW_OBJECTPACKET_HPP #define OPENMW_OBJECTPACKET_HPP #include #include #include #include #include #include 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