Entitas-0.32.0
Public Member Functions | Protected Attributes | List of all members
Entitas.Systems Class Reference
Inheritance diagram for Entitas.Systems:

Public Member Functions

 Systems ()
 Creates a new Systems instance.
 
virtual Systems Add (ISystem system)
 Adds the system instance to the systems list.
 
virtual void Initialize ()
 Calls Initialize() on all IInitializeSystem, ReactiveSystem and other nested Systems instances in the order you added them.
 
virtual void Execute ()
 Calls Execute() on all IExecuteSystem, ReactiveSystem and other nested Systems instances in the order you added them.
 
virtual void Cleanup ()
 Calls Cleanup() on all ICleanupSystem, ReactiveSystem and other nested Systems instances in the order you added them.
 
virtual void Deinitialize ()
 Calls Deinitialize() on all IDeinitializeSystem, ReactiveSystem and other nested Systems instances in the order you added them.
 
virtual void ActivateReactiveSystems ()
 Activates all ReactiveSystems in the systems list.
 
virtual void DeactivateReactiveSystems ()
 
virtual void ClearReactiveSystems ()
 Clears all ReactiveSystems in the systems list.
 

Protected Attributes

readonly List< IInitializeSystem > _initializeSystems
 
readonly List< IExecuteSystem > _executeSystems
 
readonly List< ICleanupSystem > _cleanupSystems
 
readonly List< IDeinitializeSystem > _deinitializeSystems
 

Detailed Description

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

Member Function Documentation

virtual void Entitas.Systems.DeactivateReactiveSystems ( )
inlinevirtual

Deactivates all ReactiveSystems in the systems list. This will also clear all ReactiveSystems. This is useful when you want to soft-restart your application and want to reuse your existing system instances.


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