TinyEcs Namespace

TinyEcs

TinyEcs Namespace

[This is preliminary documentation and is subject to change.]

A small pure entity-component-system written entirely in C#.
Classes
  ClassDescription
Public classComponentSystemT
Base class for systems.
Public classDoubleWriteLockException
This exception is thrown when two different systems are attempting to write to the same entity.
Public classExcludeAttribute
Exclude entities that are marked by a tag.
Public classGroupAttribute
Mark a field as an injected component group.
Public classWorld
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.
Structures
  StructureDescription
Public structureArchetype
An archetype is used to quickly instantiate entities with the same type of components.
Public structureEntity
An entity is a key that defines a relationship between different components.
Public structureRoDataStreamT
A read-only array of components or entities.
Public structureRwDataStreamT
A readable and writable array of components.
Interfaces
  InterfaceDescription
Public interfaceIComponent
Implement this interface to mark a struct as a component type. Allows the struct to be wrapped by a Ro/Rw-DataStream.
Public interfaceIData
Interface to mark a struct as usable for a RoDataStream.
Public interfaceIMessage
Implement this for messages.
Public interfaceIOnLoad
Allows a dependency to have a OnLoad method that gets called after a World has been constructed for further initialization dependant on a fully constructed World.
Public interfaceITag
Implement this interface to mark a component as a tag. (Marker component)