Quantum 3 3.1.0

Public Member Functions | Public Attributes | Properties | List of all members
Quantum.EntityPrototype Class Reference

An asset that represents a prototype for an entity. Prototypes are a convenient way to define a set of components that can be instantiated at runtime using FrameBase.Create(Quantum.AssetRef<Quantum.EntityPrototype>) or FrameBase.Create(Quantum.EntityPrototype) methods. More...

Public Member Functions

override void Loaded (IResourceManager resourceManager)
 Ensures contents of Container are sorted upon loading. More...
 

Public Attributes

ComponentPrototypeSet Container
 Container for the components. More...
 
ComponentPrototypeSet[] Nested = Array.Empty<ComponentPrototypeSet>()
 Nested prototypes. More...
 

Properties

int??? EntityCount [get]
 Number of entities that will be created if this prototype is materialized. More...
 

Detailed Description

An asset that represents a prototype for an entity. Prototypes are a convenient way to define a set of components that can be instantiated at runtime using FrameBase.Create(Quantum.AssetRef<Quantum.EntityPrototype>) or FrameBase.Create(Quantum.EntityPrototype) methods.

Member Function Documentation

◆ Loaded()

override void Quantum.EntityPrototype.Loaded ( IResourceManager  resourceManager)
inline

Ensures contents of Container are sorted upon loading.

Parameters
resourceManager

Member Data Documentation

◆ Container

ComponentPrototypeSet Quantum.EntityPrototype.Container

Container for the components.

◆ Nested

ComponentPrototypeSet [] Quantum.EntityPrototype.Nested = Array.Empty<ComponentPrototypeSet>()

Nested prototypes.

Property Documentation

◆ EntityCount

int??? Quantum.EntityPrototype.EntityCount
get

Number of entities that will be created if this prototype is materialized.