48 static std::unique_ptr<CUnit>
Create(
const CStrW& actorName,
const entity_id_t id,
Represents an actor file.
Definition: ObjectBase.h:215
Abstract base class for graphical objects that are used by units, or as props attached to other CMode...
Definition: ModelAbstract.h:50
Definition: ObjectEntry.h:38
Definition: ObjectManager.h:42
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:89
std::set< CStr > m_ActorSelections
Definition: Unit.h:103
const std::set< CStr > & GetActorSelections() const
Definition: Unit.h:76
CUnitAnimation * GetAnimation()
Definition: Unit.h:58
~CUnit()
Definition: Unit.cpp:45
entity_id_t GetID() const
Definition: Unit.h:74
void SetActorSelections(const std::set< CStr > &selections)
Overwrite the seed-selected actor selections.
Definition: Unit.cpp:88
void ReloadObject()
Definition: Unit.cpp:94
static std::unique_ptr< CUnit > Create(const CStrW &actorName, const entity_id_t id, const uint32_t seed, CObjectManager &objectManager)
Definition: Unit.cpp:50
CObjectManager & m_ObjectManager
Definition: Unit.h:108
void SetEntitySelection(const CStr &key, const CStr &selection)
Definition: Unit.cpp:69
entity_id_t m_ID
Definition: Unit.h:95
CUnit(CObjectManager &objectManager, const CActorDef &actor, const entity_id_t id, const uint32_t seed)
Definition: Unit.cpp:31
const CObjectEntry & GetObject() const
Definition: Unit.h:54
uint32_t m_Seed
Definition: Unit.h:98
CObjectEntry * m_Object
Definition: Unit.h:87
void UpdateModel(float frameTime)
Update the model's animation.
Definition: Unit.cpp:63
std::map< CStr, CStr > m_EntitySelections
Definition: Unit.h:105
CUnitAnimation * m_Animation
Definition: Unit.h:91
const CActorDef & m_Actor
Definition: Unit.h:85
CModelAbstract & GetModel() const
Definition: Unit.h:56
u32 entity_id_t
Entity ID type.
Definition: Entity.h:29
unsigned int uint32_t
Definition: wposix_types.h:53
pthread_key_t key
Definition: wpthread.cpp:140