diff --git a/world.go b/world.go index 5af135a..4b64b50 100644 --- a/world.go +++ b/world.go @@ -45,6 +45,7 @@ type World interface { SetSpeed(speed float64) error AddSystem(sys ...ISystem) Close() + Tick() int } type world struct { @@ -73,6 +74,9 @@ func NewWorld(tick int) World { } } +func (w *world) Tick() int { + return w.tick +} func (w *world) Id() WorldId { return WorldId(w.world.Id()) }