TinyEcs, simple pure .NET ECS
![]() | World Class |
[This is preliminary documentation and is subject to change.]
The World class glues entities, components and systems together.
Use this class to create and destroy entities, get references to components and schedule systems.
It also allows very basic Dependency Injection for ComponentSystems and a simple resource locator.

Namespace: TinyEcs
Assembly: TinyEcs (in TinyEcs.dll) Version: 1.0.0
The World type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | Create |
Create a new instance of a world.
Will automatically create all ComponentSystems it can find and inject their dependencies.
|
![]() | CreateArchetype(Type) |
Create a new archetype.
|
![]() | CreateArchetype(Archetype) |
Create a new archetype by combining archetypes.
|
![]() | CreateArchetype(Archetype, Type) |
Derive a new archetype from an existing archetype.
|
![]() | CreateArchetype(Archetype, Type) |
Derive a new archetype from multiple archetypes.
|
![]() | CreateEntity |
Create a new entity.
|
![]() | DestroyEntity |
Destroy an existing entity.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetArchetype |
Get the archetype of an entity.
|
![]() | GetDependencyT |
Gets a resource that has been injected as a dependency in a ComponentSystem.
|
![]() | 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.) |
![]() | Post |
Post a message and let all eligible systems handle it.
|
![]() | RefT |
Get a reference to a component belonging to an entity.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
