![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Represents an actor file. More...
#include <ObjectBase.h>

Public Member Functions | |
| CActorDef (CObjectManager &objectManager) | |
| std::vector< u8 > | QualityLevels () const |
| VfsPath | GetPathname () const |
| std::set< CStr > | PickSelectionsAtRandom (uint32_t seed) const |
| Return a list of selections specifying a particular variant in all groups, based on the seed. More... | |
Protected Member Functions | |
| const std::shared_ptr< CObjectBase > & | GetBase (u8 QualityLevel) const |
| Return the Object base matching the given quality level. More... | |
| bool | Load (const VfsPath &pathname) |
| Initialise this object by loading from the given file. More... | |
| void | LoadErrorPlaceholder (const VfsPath &pathname) |
| Initialise this object with a default placeholder actor, pretending to be the actor at pathname. More... | |
| bool | UsesFile (const VfsPath &pathname) const |
| Returns whether this actor (including any possible props) uses the given file. More... | |
Protected Attributes | |
| VfsPath | m_Pathname |
Private Member Functions | |
| NONCOPYABLE (CActorDef) | |
Private Attributes | |
| CObjectManager & | m_ObjectManager |
| std::vector< std::shared_ptr< CObjectBase > > | m_ObjectBases |
| std::unordered_set< VfsPath > | m_UsedFiles |
Friends | |
| class | CObjectManager |
| class | CObjectBase |
| class | CObjectEntry |
Represents an actor file.
Actors can contain various quality levels. An ActorDef maintains a CObjectBase for each specified quality level, and provides access to it.
| CActorDef::CActorDef | ( | CObjectManager & | objectManager | ) |
|
protected |
Return the Object base matching the given quality level.
|
inline |
|
protected |
Initialise this object by loading from the given file.
Returns false on error.
|
protected |
Initialise this object with a default placeholder actor, pretending to be the actor at pathname.
|
private |
| std::set< CStr > CActorDef::PickSelectionsAtRandom | ( | uint32_t | seed | ) | const |
Return a list of selections specifying a particular variant in all groups, based on the seed.
| std::vector< u8 > CActorDef::QualityLevels | ( | ) | const |
|
protected |
Returns whether this actor (including any possible props) uses the given file.
(This is used for hotloading.)
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
protected |
|
private |