1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 22:53:52 +00:00
openmw-tes3mp/components/openmw-mp/Base/BaseActor.hpp

70 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>
#include <components/openmw-mp/Base/BaseNetCreature.hpp>
2017-04-09 07:50:35 +00:00
#include <RakNetTypes.h>
#include <memory>
namespace mwmp
{
class BaseActor : public BaseNetCreature
{
public:
BaseActor()
{
hasPositionData = false;
hasStatsDynamicData = false;
refNumIndex = 0;
mpNum = 0;
drawState = 0;
isFlying = false;
}
std::string refId;
unsigned refNumIndex;
unsigned mpNum;
std::string sound;
Animation animation;
bool hasPositionData;
bool hasStatsDynamicData;
};
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
{
cell.blank();
2017-04-09 07:50:35 +00:00
}
enum class Action: uint8_t
{
Set = 0,
Add,
Remsove,
Request
};
2017-04-09 07:50:35 +00:00
RakNet::RakNetGUID guid;
std::vector<std::shared_ptr<BaseActor>> baseActors;
2017-04-09 07:50:35 +00:00
ESM::Cell cell;
Action action;
bool isValid;
2017-04-09 07:50:35 +00:00
};
}
#endif //OPENMW_BASEACTOR_HPP