Class UniverseSystem
- Namespace
- NominalSystems.Universe
- Assembly
- NominalSystems.Universe.dll
[Nominal] This is the base class for all systems that exist within a Nominal simulation. Simulation systems always exist and can be fetched by any object that inherits from the Universe classes.
public class UniverseSystem : UniverseEvent
- Inheritance
-
UniverseSystem
- Derived
- Extension Methods
Constructors
UniverseSystem()
Default constructor
protected UniverseSystem()
Methods
AddBehaviour<T>()
Adds a universe behaviour of a particular type to the system. This will be a root-level behaviour to add and returns the behaviour once it is added.
public T AddBehaviour<T>() where T : UniverseBehaviour
Returns
- T
The universe behaviour reference added
Type Parameters
T
The universe behaviour to add
AddObject<T>()
Adds a universe object of a particular type to the system. This will be a root-level object to add and returns the object once it is added.
public T AddObject<T>() where T : UniverseObject
Returns
- T
The universe object reference added
Type Parameters
T
The universe object to add
FindBehaviours<T>()
Attempts to find all behaviour of a specific type that have been added to the main controller on the simulation.
public T[] FindBehaviours<T>() where T : UniverseBehaviour
Returns
- T[]
An array of all behaviours added
Type Parameters
T
The type of universe behaviour to search for
FindModels<T>()
Attempts to find all models of a specific type that have been added to the main controller on the simulation.
public T[] FindModels<T>() where T : UniverseModel
Returns
- T[]
An array of all models added
Type Parameters
T
The type of universe model to search for
FindObjects<T>()
Attempts to find all objects of a specific type that have been added to the main controller on the simulation.
public T[] FindObjects<T>() where T : UniverseObject
Returns
- T[]
An array of all objects added
Type Parameters
T
The type of universe objects to search for