Class in Zendir.Universe | Inherits from UniverseSystem

Declaration

class ExtensionSystem;

Description

The extension system is able to handle custom ticking functionality for use with the API and any other form. It just enables the ability to tick at a specific interval.


Properties

InheritedDescription
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.

Methods

DeclaredDescription
GetObjectTypeReturns the type of the given object, if it is an object.
GetRootBehavioursReturns all universe behaviours in the simulation that are parented to the given object.If the parent is null, then all root-level behaviours are returned.
GetRootObjectsReturns all universe objects in the simulation that are parented to the given object.If the parent is null, then all root-level objects are returned.
GetSimulationStructureReturns the simulation structure, containing the IDs of all objects andthe ownership of such objects. This includes messages, models and theIDs of all objects so it can be loaded by the API easily.
GetSimulationTimeReturns the simulation time in seconds
GetStateReturns the current simulation state as a JSON object
InitializeSimulationInitializes the simulation by updating the universe event controller. Thiswill ensure that the simulation is correctly initialized and an update stepis called on all components for the purpose of the saving and loading system.
SetStateSets the simulation state from a JSON object
TickIterationsTicks the simulation with a certain number of iterations safely,ensuring that it does not take too long to complete. It will alsoreturn the number of iterations completed.
InheritedDescription
DestroyRemoves the current object from the simulation.