#include <ObjectManager.h>
◆ VariantDiversity
Governs how random variants are selected by ObjectBase.
Enumerator |
---|
NONE | |
LIMITED | |
FULL | |
◆ CObjectManager()
◆ ~CObjectManager()
CObjectManager::~CObjectManager |
( |
| ) |
|
◆ ActorQualityChanged()
void CObjectManager::ActorQualityChanged |
( |
| ) |
|
Reload actors that have a quality setting.
Used when changing the actor quality.
◆ FindActorDef()
std::pair< bool, CActorDef & > CObjectManager::FindActorDef |
( |
const CStrW & |
actorName | ) |
|
Get the actor definition for the given path name.
If the actor cannot be loaded, this will return a placeholder actor.
- Returns
- Success/failure boolean and a valid actor definition.
◆ FindObjectVariation() [1/3]
CObjectEntry * CObjectManager::FindObjectVariation |
( |
const CActorDef * |
actor, |
|
|
const std::vector< std::set< CStr > > & |
selections, |
|
|
uint32_t |
seed |
|
) |
| |
Get the object entry for a given actor & the given selections list.
- Parameters
-
selections | - a possibly incomplete list of selections. |
seed | - the randomness seed to use to complete the random selections. |
◆ FindObjectVariation() [2/3]
CObjectEntry * CObjectManager::FindObjectVariation |
( |
const CStrW & |
objname, |
|
|
const std::vector< const std::set< CStr > * > & |
completeSelections |
|
) |
| |
◆ FindObjectVariation() [3/3]
CObjectEntry * CObjectManager::FindObjectVariation |
( |
const std::shared_ptr< CObjectBase > & |
base, |
|
|
const std::vector< const std::set< CStr > * > & |
completeSelections |
|
) |
| |
- See also
- FindObjectVariation. These take a complete selection. These are pointers to sets that are guaranteed to exist (pointers are used to avoid copying the sets).
◆ GetMeshManager()
◆ GetSkeletonAnimManager()
◆ GetTerrain()
CTerrain * CObjectManager::GetTerrain |
( |
| ) |
|
Get the terrain object that actors managed by this manager should be linked with (primarily for the purpose of decals)
◆ GetVariantDiversity()
◆ NONCOPYABLE()
◆ ReloadChangedFile()
Reload any scripts that were loaded from the given filename.
(This is used to implement hotloading.)
◆ UnloadObjects()
void CObjectManager::UnloadObjects |
( |
| ) |
|
◆ VariantDiversityChanged()
void CObjectManager::VariantDiversityChanged |
( |
| ) |
|
Reload actors.
Used when changing the variant diversity.
◆ m_ActorDefs
◆ m_MeshManager
◆ m_Objects
◆ m_QualityHook
◆ m_QualityLevel
u8 CObjectManager::m_QualityLevel = 100 |
◆ m_Simulation
◆ m_SkeletonAnimManager
◆ m_VariantDiversity
◆ m_VariantDiversityHook
std::unique_ptr<CConfigDBHook> CObjectManager::m_VariantDiversityHook |
The documentation for this class was generated from the following files: