openmw-tes3coop/components/openmw-mp/Base/BaseActor.hpp

73 lines
1.2 KiB
C++
Raw Normal View History

#ifndef OPENMW_BASEACTOR_HPP
#define OPENMW_BASEACTOR_HPP
#include <components/esm/loadcell.hpp>
#include <components/openmw-mp/Base/BaseStructs.hpp>
2017-04-09 07:50:35 +00:00
#include <RakNetTypes.h>
namespace mwmp
{
class BaseActor
{
public:
BaseActor()
{
}
std::string refId;
int refNumIndex;
int mpNum;
2017-04-10 04:22:03 +00:00
ESM::Position position;
ESM::Position direction;
2017-04-10 04:22:03 +00:00
ESM::Cell cell;
unsigned int movementFlags;
char drawState;
bool isFlying;
std::string response;
std::string sound;
SimpleCreatureStats creatureStats;
Animation animation;
Attack attack;
};
2017-04-09 07:50:35 +00:00
class BaseActorList
2017-04-09 07:50:35 +00:00
{
public:
BaseActorList()
2017-04-09 07:50:35 +00:00
{
}
enum ACTOR_ACTION
{
SET = 0,
ADD = 1,
REMOVE = 2,
REQUEST = 3
};
2017-04-09 07:50:35 +00:00
RakNet::RakNetGUID guid;
std::vector<BaseActor> baseActors;
2017-04-09 07:50:35 +00:00
unsigned int count;
ESM::Cell cell;
unsigned char action; // 0 - Clear and set in entirety, 1 - Add item, 2 - Remove item, 3 - Request items
2017-04-09 07:50:35 +00:00
};
}
#endif //OPENMW_BASEACTOR_HPP