Versions in this module Expand all Collapse all v0 v0.0.1 Nov 12, 2026 Changes in this version + type Commands struct + func CommandsOf(w *ecs.World) *Commands + func (c *Commands) Apply(w *ecs.World) + func (c *Commands) Despawn(e ecs.Entity) + func (c *Commands) Do(fn func(w *ecs.World)) + func (c *Commands) Len() int + func (c *Commands) Spawn(values ...any) + type Context struct + Commands *Commands + Time Time + World *ecs.World + type EventReader struct + func NewEventReader[T any](w *ecs.World) *EventReader[T] + func (r *EventReader[T]) Read() iter.Seq[T] + type Events struct + func EventsOf[T any](w *ecs.World) *Events[T] + func (e *Events[T]) Len() int + func (e *Events[T]) Send(ev T) + type Initializer interface + Init func(ctx *Context) + type Runner interface + Run func(ctx *Context) + type Schedule struct + func (s *Schedule) Add(sys ...System) + func (s *Schedule) AddRunner(runners ...Runner) + func (s *Schedule) AddStage(name string, sys ...System) + func (s *Schedule) Run(w *ecs.World, delta time.Duration) + type System func(ctx *Context) + func (f System) Run(ctx *Context) + type Time struct + Delta time.Duration + Tick uint64