2017-04-09 05:51:28 +00:00
|
|
|
#ifndef OPENMW_ACTORPACKET_HPP
|
|
|
|
#define OPENMW_ACTORPACKET_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <RakNetTypes.h>
|
|
|
|
#include <BitStream.h>
|
|
|
|
#include <PacketPriority.h>
|
2017-04-09 13:32:44 +00:00
|
|
|
#include <components/openmw-mp/Base/BaseActor.hpp>
|
2017-04-09 05:51:28 +00:00
|
|
|
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ActorPacket : public BasePacket
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ActorPacket(RakNet::RakPeerInterface *peer);
|
|
|
|
|
|
|
|
~ActorPacket();
|
|
|
|
|
2017-04-09 13:32:44 +00:00
|
|
|
void setActorList(BaseActorList *actorList);
|
2017-05-28 07:23:16 +00:00
|
|
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
2017-04-09 05:51:28 +00:00
|
|
|
|
|
|
|
protected:
|
2017-04-09 13:32:44 +00:00
|
|
|
BaseActorList *actorList;
|
2017-06-01 22:35:32 +00:00
|
|
|
static const int maxActors = 3000;
|
2017-04-09 05:51:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_ACTORPACKET_HPP
|