star.entity

Defines an architecture to manage entities, and several entity-related events. Components must be defined as classes (for internal storage).

Members

Classes

Entity
class Entity

An entity an aggregate of components (pure data), accessible with an id.

EntityManager
class EntityManager

Manages entities and their associated components.

Mixin templates

ComponentEvent
mixintemplate ComponentEvent(C)
Undocumented in source.
EntityEvent
mixintemplate EntityEvent()
Undocumented in source.

Structs

ComponentAddedEvent
struct ComponentAddedEvent(C)
Undocumented in source.
ComponentRemovedEvent
struct ComponentRemovedEvent(C)
Undocumented in source.
EntityCreatedEvent
struct EntityCreatedEvent
Undocumented in source.
EntityDestroyedEvent
struct EntityDestroyedEvent
Undocumented in source.
ID
struct ID

An id encapsulates an index (unique ulong in an entity manager) and a tag (to check if the entity is in sync (valid) with the manager).

Meta

License

MIT License (Expat). See accompanying file LICENSE.

Authors

James Zhu <github.com/jzhu98>