![]() |
Entitas
1.13.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
|
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 () |
virtual void | Execute () |
virtual void | Cleanup () |
virtual void | TearDown () |
void | ActivateReactiveSystems () |
Activates all ReactiveSystems in the systems list. | |
void | DeactivateReactiveSystems () |
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< ITearDownSystem > | _tearDownSystems |
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 10 of file Systems.cs.
|
inlinevirtual |
Calls Cleanup() on all ICleanupSystem and other nested Systems instances in the order you added them.
Implements Entitas.ICleanupSystem.
Definition at line 68 of file Systems.cs.
|
inline |
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.
Definition at line 102 of file Systems.cs.
|
inlinevirtual |
Calls Execute() on all IExecuteSystem and other nested Systems instances in the order you added them.
Implements Entitas.IExecuteSystem.
Definition at line 60 of file Systems.cs.
|
inlinevirtual |
Calls Initialize() on all IInitializeSystem and other nested Systems instances in the order you added them.
Implements Entitas.IInitializeSystem.
Definition at line 52 of file Systems.cs.
|
inlinevirtual |
Calls TearDown() on all ITearDownSystem and other nested Systems instances in the order you added them.
Implements Entitas.ITearDownSystem.
Definition at line 76 of file Systems.cs.