1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 14:23:51 +00:00
openmw-tes3mp/components/openmw-mp/Base/BaseActor.hpp
David Cernat b9520c11da [General] Rework PlayerEquipment packets so they are of minimal size
Moreover, rename BaseNetCreature's equipedItems into equipmentItems.

(cherry picked from commit d1ad0c91f8)
2018-04-20 22:46:16 +03:00

69 lines
1.2 KiB
C++

#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>
#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;
};
class BaseActorList
{
public:
BaseActorList()
{
cell.blank();
}
enum class Action: uint8_t
{
Set = 0,
Add,
Remove,
Request
};
RakNet::RakNetGUID guid;
std::vector<std::shared_ptr<BaseActor>> baseActors;
ESM::Cell cell;
Action action;
bool isValid;
};
}
#endif //OPENMW_BASEACTOR_HPP