XII Release 0.1.0
Loading...
Searching...
No Matches
xiiPrefabInstantiationOptions Struct Reference

Public Types

enum class  RandomSeedMode { DeterministicFromParent , CompletelyRandom , FixedFromSerialization , CustomRootValue }

Public Attributes

xiiGameObjectHandle m_hParent
xiiDynamicArray< xiiGameObject * > * m_pCreatedRootObjectsOut = nullptr
xiiDynamicArray< xiiGameObject * > * m_pCreatedChildObjectsOut = nullptr
const xiiUInt16 * m_pOverrideTeamID = nullptr
bool m_bForceDynamic = false
xiiTempHashedString m_ReplaceNamedRootWithParent
 If the prefab has a single root node with this non-empty name, rather than creating a new object, instead the m_hParent object is used.
RandomSeedMode m_RandomSeedMode = RandomSeedMode::DeterministicFromParent
xiiUInt32 m_uiCustomRandomSeedRootValue = 0
xiiTime m_MaxStepTime = xiiTime::MakeZero()
xiiProgress * m_pProgress = nullptr

Member Enumeration Documentation

◆ RandomSeedMode

Enumerator
DeterministicFromParent 

xiiWorld::CreateObject() will either derive a deterministic value from the parent object, or assign a random value, if no parent exists.

CompletelyRandom 

xiiWorld::CreateObject() will assign a random value to this object.

FixedFromSerialization 

Keep deserialized random seed value.

CustomRootValue 

Use the given seed root value to assign a deterministic (but different) value to each game object.


The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/Core/WorldSerializer/WorldReader.h