Quantum 3 3.0.10

Public Member Functions | List of all members
Quantum.Core.EntityPrototypeSystem Class Reference

The Quantum core system that creates map entities from the map prototype. Switching maps will destroy all entities and create new ones. More...

Inheritance diagram for Quantum.Core.EntityPrototypeSystem:
Quantum.SystemSignalsOnly Quantum.ISignalOnMapChanged Quantum.SystemBase Quantum.ISignal

Public Member Functions

override void OnInit (Frame f)
 Create and destroy map entities of the initial map. More...
 
void OnMapChanged (Frame f, AssetRef< Map > previousMap)
 Destroy current map entities and create new ones from the new map. More...
 
- Public Member Functions inherited from Quantum.SystemBase
 SystemBase ()
 Constructor. More...
 
 SystemBase (params SystemBase[] children)
 Create a new instance of a system with children. More...
 
 SystemBase (string scheduleSample)
 Create a new instance and setting the sample name. More...
 
virtual void OnDisabled (Frame f)
 Is called when the system was disabled for example after Frame.SystemDisable(Type). More...
 
virtual void OnEnabled (Frame f)
 Is called when the system was enabled for example after calling Frame.SystemEnable<T>() or during QuantumGame.InitSystems(Photon.Deterministic.DeterministicFrame). More...
 
TaskHandle OnSchedule (Frame f, TaskHandle taskHandle)
 Creates the task graph for the system. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Quantum.SystemSignalsOnly
sealed override TaskHandle Schedule (Frame f, TaskHandle taskHandle)
 Nothing to schedule, this is a system just for signals that requires not task processing. More...
 
- Properties inherited from Quantum.SystemBase
IEnumerable< SystemBaseChildSystems [get]
 The enumerable child systems. More...
 
IEnumerable< SystemBaseHierarchy [get]
 Creates the complete sub graph of child systems. More...
 
SystemBase ParentSystem [get]
 The parent system in the system hierarchy. More...
 
string ProfilerName [get]
 Profiler name. More...
 
Int32 RuntimeIndex [get]
 A unique index assigned to identify systems at runtime. More...
 
virtual Boolean StartEnabled [get, set]
 Set to true when the simulation should start with this system enabled. More...
 
- Properties inherited from Quantum.ISignal
Int32 RuntimeIndex [get]
 Index of the signal in the runtime. More...
 

Detailed Description

The Quantum core system that creates map entities from the map prototype. Switching maps will destroy all entities and create new ones.

Member Function Documentation

◆ OnInit()

override void Quantum.Core.EntityPrototypeSystem.OnInit ( Frame  f)
inlinevirtual

Create and destroy map entities of the initial map.

Parameters
fThe frame reference.

Reimplemented from Quantum.SystemBase.

◆ OnMapChanged()

void Quantum.Core.EntityPrototypeSystem.OnMapChanged ( Frame  f,
AssetRef< Map previousMap 
)
inline

Destroy current map entities and create new ones from the new map.

Parameters
fThe frame reference.
previousMapThe previous map.

Implements Quantum.ISignalOnMapChanged.