Quantum 3
3.1.0
The Quantum system base class. More...
Public Member Functions | |
| SystemBase () | |
| Create a new instance of a system without children. More... | |
| SystemBase (params SystemBase[] children) | |
| Create a new instance of a system with children. More... | |
| SystemBase (string scheduleSample) | |
| Create a new instance of a system without children. More... | |
| void | Disable (Frame frame) |
| void | Enable (Frame frame) |
| bool | IsEnabledInHierarchy (Frame frame) |
| bool | IsEnabledSelf (Frame frame) |
| virtual void | OnDisabled (Frame frame) |
| Is called when the system was disabled, for example after calling Frame.SystemDisable(Type). The base implementation calls OnDisabled on the child systems that are enabled themselves. More... | |
| virtual void | OnEnabled (Frame frame) |
| Is called when the system was enabled, for example after calling Frame.SystemEnable<T>() or when the game starts with StartEnabled set. The base implementation calls OnEnabled on the child systems that are enabled themselves. More... | |
| virtual void | OnInit (Frame frame) |
| Is called when the system is initialized. More... | |
| virtual void | OnResync (Frame frame) |
| Is called when the simulation is about to start from a snapshot. More... | |
| TaskHandle | OnSchedule (Frame frame, TaskHandle taskHandle) |
| Creates the task graph for the system by calling Schedule and then scheduling the enabled child systems. Exceptions thrown by the children are collected and thrown after all systems were scheduled, so the task handles of the other children are kept. More... | |
Protected Member Functions | |
| abstract TaskHandle | Schedule (Frame frame, TaskHandle taskHandle) |
| Override to add tasks to this system. More... | |
Properties | |
| IEnumerable< SystemBase > | ChildSystems [get] |
| The direct child systems of this system. More... | |
| IEnumerable< SystemBase > | Hierarchy [get] |
| Enumerates this system and all of its descendants, depth-first. More... | |
| SystemBase | ParentSystem [get] |
| The parent system in the system hierarchy. More... | |
| string | ProfilerName [get] |
| The name of the system in the profiler, defaults to the type 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... | |
The Quantum system base class.
Only advised for advanced use cases.
|
inline |
Create a new instance of a system without children.
|
inline |
Create a new instance of a system without children.
| scheduleSample | Not used anymore, the profiler uses the type name. |
|
inline |
Create a new instance of a system with children.
| children | The child systems, they are enabled and disabled together with this system. |
| void Quantum.SystemBase.Disable | ( | Frame | frame | ) |
| frame | The referenced frame. |
| void Quantum.SystemBase.Enable | ( | Frame | frame | ) |
| frame | The referenced frame. |
| bool Quantum.SystemBase.IsEnabledSelf | ( | Frame | frame | ) |
| frame | The referenced frame. |
| bool Quantum.SystemBase.IsEnabledInHierarchy | ( | Frame | frame | ) |
| frame | The referenced frame. |
|
inlinevirtual |
Is called when the system is initialized.
| frame | The referenced frame. |
Reimplemented in Quantum.Task.SystemArrayFilter< T >, Quantum.Task.SystemThreadedComponent< T >, Quantum.Task.SystemArrayComponent< T >, Quantum.Core.EntityPrototypeSystem, Quantum.Core.PhysicsSystem3D, Quantum.Task.SystemThreadedFilter< T >, and Quantum.Core.PhysicsSystem2D.
|
inlinevirtual |
Is called when the simulation is about to start from a snapshot.
| frame | The referenced frame. |
|
inlinevirtual |
Is called when the system was enabled, for example after calling Frame.SystemEnable<T>() or when the game starts with StartEnabled set. The base implementation calls OnEnabled on the child systems that are enabled themselves.
| frame | The referenced frame. |
|
inlinevirtual |
Is called when the system was disabled, for example after calling Frame.SystemDisable(Type). The base implementation calls OnDisabled on the child systems that are enabled themselves.
| frame | The referenced frame. |
|
inline |
Creates the task graph for the system by calling Schedule and then scheduling the enabled child systems. Exceptions thrown by the children are collected and thrown after all systems were scheduled, so the task handles of the other children are kept.
| frame | The referenced frame. |
| taskHandle | The initial task handle. |
|
protectedpure virtual |
Override to add tasks to this system.
| frame | The referenced frame. |
| taskHandle | The initial task handle. |
Implemented in Quantum.SystemMainThread, Quantum.Task.SystemThreadedFilter< T >, Quantum.Task.SystemArrayFilter< T >, Quantum.Task.SystemArrayComponent< T >, Quantum.Task.SystemThreadedComponent< T >, Quantum.SystemMainThreadGroup, Quantum.SystemGroup, Quantum.Core.CullingSystem3D, Quantum.Core.PhysicsSystem2D, Quantum.Core.NavigationSystem, Quantum.SystemSignalsOnly, Quantum.Core.CullingSystem2D, and Quantum.Core.PhysicsSystem3D.
|
get |
A unique index assigned to identify systems at runtime.
|
get |
The parent system in the system hierarchy.
|
get |
The direct child systems of this system.
|
get |
Enumerates this system and all of its descendants, depth-first.
|
getset |
Set to true when the simulation should start with this system enabled.
|
getprotected |
The name of the system in the profiler, defaults to the type name.