TinyEcs, simple pure .NET ECS
ComponentSystemT Class |
[This is preliminary documentation and is subject to change.]
Base class for systems.
Inheritance Hierarchy
Namespace: TinyEcs
Assembly: TinyEcs (in TinyEcs.dll) Version: 1.0.0
The ComponentSystemT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ComponentSystemT | Initializes a new instance of the ComponentSystemT class |
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
Executed when a message of type T is posted.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
When implementing a non-default constructor, the arguments will be injected.
The dependencies need to have a default constructor in order for the dependency injection to work.
Only one constructor is allowed for each ComponentSystemT. Arguments of the same type will share the same instance
across ComponentSystems.
See Also