Entitas Redux
JCMG.EntitasRedux.Systems Class Reference

Systems provide a convenient way to group systems. You can add IInitializeSystem, IExecuteSystem, ICleanupSystem, ITearDownSystem, ReactiveSystem and other nested Systems instances. All systems will be initialized and executed based on the order you added them. More...

Inheritance diagram for JCMG.EntitasRedux.Systems:
JCMG.EntitasRedux.IInitializeSystem JCMG.EntitasRedux.IUpdateSystem JCMG.EntitasRedux.IFixedUpdateSystem JCMG.EntitasRedux.ILateUpdateSystem JCMG.EntitasRedux.IReactiveSystem JCMG.EntitasRedux.ICleanupSystem JCMG.EntitasRedux.ITearDownSystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.ISystem JCMG.EntitasRedux.VisualDebugging.DebugSystems

Public Member Functions

 Systems ()
 Creates a new Systems instance. More...
 
virtual Systems Add (ISystem system)
 Adds the ISystem instance to the systems list. More...
 
virtual void Activate ()
 Activates all IReactiveSystem in the systems list. More...
 
virtual void Deactivate ()
 
virtual void Clear ()
 Clears all IReactiveSystem in the systems list. More...
 
virtual void Execute ()
 Executes all IReactiveSystem in the systems list. More...
 
virtual void Update ()
 Calls Update() on all IUpdateSystem and other nested Systems instances in the order you added them. More...
 
virtual void FixedUpdate ()
 Calls FixedUpdate() on all IFixedUpdateSystem and other nested systems instances in the order you added them. More...
 
virtual void LateUpdate ()
 Calls LateUpdate() on all ILateUpdateSystem and other nested systems instances in the order you added them. More...
 
virtual void Initialize ()
 Calls Initialize() on all IInitializeSystem and other nested systems instances in the order you added them. More...
 
virtual void Cleanup ()
 Calls Cleanup() on all ICleanupSystem and other nested systems instances in the order you added them. More...
 
virtual void TearDown ()
 Calls Teardown() on all ITearDownSystem and other nested systems instances in the order you added them. More...
 

Detailed Description

Systems provide a convenient way to group systems. You can add IInitializeSystem, IExecuteSystem, ICleanupSystem, ITearDownSystem, ReactiveSystem and other nested Systems instances. All systems will be initialized and executed based on the order you added them.

Definition at line 37 of file Systems.cs.

Constructor & Destructor Documentation

◆ Systems()

JCMG.EntitasRedux.Systems.Systems ( )

Creates a new Systems instance.

Definition at line 57 of file Systems.cs.

Member Function Documentation

◆ Activate()

virtual void JCMG.EntitasRedux.Systems.Activate ( )
virtual

Activates all IReactiveSystem in the systems list.

Implements JCMG.EntitasRedux.IReactiveSystem.

Definition at line 117 of file Systems.cs.

◆ Add()

virtual Systems JCMG.EntitasRedux.Systems.Add ( ISystem  system)
virtual

Adds the ISystem instance to the systems list.

Parameters
system
Returns

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 74 of file Systems.cs.

◆ Cleanup()

virtual void JCMG.EntitasRedux.Systems.Cleanup ( )
virtual

Calls Cleanup() on all ICleanupSystem and other nested systems instances in the order you added them.

Implements JCMG.EntitasRedux.ICleanupSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 218 of file Systems.cs.

◆ Clear()

virtual void JCMG.EntitasRedux.Systems.Clear ( )
virtual

Clears all IReactiveSystem in the systems list.

Implements JCMG.EntitasRedux.IReactiveSystem.

Definition at line 145 of file Systems.cs.

◆ Deactivate()

virtual void JCMG.EntitasRedux.Systems.Deactivate ( )
virtual

Deactivates all IReactiveSystem in the systems list. This will also clear all IReactiveSystems.

This is useful when you want to soft-restart your application and want to reuse your existing system instances.

Implements JCMG.EntitasRedux.IReactiveSystem.

Definition at line 133 of file Systems.cs.

◆ Execute()

virtual void JCMG.EntitasRedux.Systems.Execute ( )
virtual

Executes all IReactiveSystem in the systems list.

Implements JCMG.EntitasRedux.IReactiveSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 157 of file Systems.cs.

◆ FixedUpdate()

virtual void JCMG.EntitasRedux.Systems.FixedUpdate ( )
virtual

Calls FixedUpdate() on all IFixedUpdateSystem and other nested systems instances in the order you added them.

Implements JCMG.EntitasRedux.IFixedUpdateSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 182 of file Systems.cs.

◆ Initialize()

virtual void JCMG.EntitasRedux.Systems.Initialize ( )
virtual

Calls Initialize() on all IInitializeSystem and other nested systems instances in the order you added them.

Implements JCMG.EntitasRedux.IInitializeSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 206 of file Systems.cs.

◆ LateUpdate()

virtual void JCMG.EntitasRedux.Systems.LateUpdate ( )
virtual

Calls LateUpdate() on all ILateUpdateSystem and other nested systems instances in the order you added them.

Implements JCMG.EntitasRedux.ILateUpdateSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 194 of file Systems.cs.

◆ TearDown()

virtual void JCMG.EntitasRedux.Systems.TearDown ( )
virtual

Calls Teardown() on all ITearDownSystem and other nested systems instances in the order you added them.

Implements JCMG.EntitasRedux.ITearDownSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 230 of file Systems.cs.

◆ Update()

virtual void JCMG.EntitasRedux.Systems.Update ( )
virtual

Calls Update() on all IUpdateSystem and other nested Systems instances in the order you added them.

Implements JCMG.EntitasRedux.IUpdateSystem.

Reimplemented in JCMG.EntitasRedux.VisualDebugging.DebugSystems.

Definition at line 170 of file Systems.cs.


The documentation for this class was generated from the following file: