forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
791 B
C++
34 lines
791 B
C++
#ifndef OPENMW_ACTORPACKET_HPP
|
|
#define OPENMW_ACTORPACKET_HPP
|
|
|
|
#include <string>
|
|
#include <RakNetTypes.h>
|
|
#include <BitStream.h>
|
|
#include <PacketPriority.h>
|
|
#include <components/openmw-mp/Base/BaseActor.hpp>
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
|
|
|
|
|
namespace mwmp
|
|
{
|
|
class ActorPacket : public BasePacket
|
|
{
|
|
public:
|
|
ActorPacket(RakNet::RakPeerInterface *peer);
|
|
|
|
~ActorPacket();
|
|
|
|
void setActorList(BaseActorList *actorList);
|
|
|
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
|
protected:
|
|
bool PacketHeader(RakNet::BitStream *bs, bool send);
|
|
virtual void Actor(BaseActor &actor, bool send);
|
|
BaseActorList *actorList;
|
|
static const int maxActors = 3000;
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_ACTORPACKET_HPP
|