50 static std::unique_ptr<CUnit>
Create(
const CStrW& actorName,
const entity_id_t id,
Represents an actor file.
Definition: ObjectBase.h:219
Abstract base class for graphical objects that are used by units, or as props attached to other CMode...
Definition: ModelAbstract.h:56
Definition: ObjectEntry.h:39
Definition: ObjectManager.h:46
Deals with synchronisation issues between raw animation data (CModel, CSkeletonAnim) and the simulati...
Definition: UnitAnimation.h:37
std::unique_ptr< CModelAbstract > m_Model
Definition: Unit.h:91
std::set< CStr > m_ActorSelections
Definition: Unit.h:105
const std::set< CStr > & GetActorSelections() const
Definition: Unit.h:78
CUnitAnimation * GetAnimation()
Definition: Unit.h:60
~CUnit()
Definition: Unit.cpp:49
entity_id_t GetID() const
Definition: Unit.h:76
void SetActorSelections(const std::set< CStr > &selections)
Overwrite the seed-selected actor selections.
Definition: Unit.cpp:90
void ReloadObject()
Definition: Unit.cpp:96
static std::unique_ptr< CUnit > Create(const CStrW &actorName, const entity_id_t id, const uint32_t seed, CObjectManager &objectManager)
Definition: Unit.cpp:54
CObjectManager & m_ObjectManager
Definition: Unit.h:110
void SetEntitySelection(const CStr &key, const CStr &selection)
Definition: Unit.cpp:71
entity_id_t m_ID
Definition: Unit.h:97
CUnit(CObjectManager &objectManager, const CActorDef &actor, const entity_id_t id, const uint32_t seed)
Definition: Unit.cpp:35
const CObjectEntry & GetObject() const
Definition: Unit.h:56
uint32_t m_Seed
Definition: Unit.h:100
CObjectEntry * m_Object
Definition: Unit.h:89
void UpdateModel(float frameTime)
Update the model's animation.
Definition: Unit.cpp:65
std::map< CStr, CStr > m_EntitySelections
Definition: Unit.h:107
CUnitAnimation * m_Animation
Definition: Unit.h:93
const CActorDef & m_Actor
Definition: Unit.h:87
CModelAbstract & GetModel() const
Definition: Unit.h:58
std::uint32_t entity_id_t
Entity ID type.
Definition: Entity.h:29
pthread_key_t key
Definition: wpthread.cpp:141