ecs

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity interface {
	Init(world *World)
	Update(world *World)
	GetType() string
}

type World

type World struct {
	// contains filtered or unexported fields
}

func (*World) AddEntities

func (w *World) AddEntities(entities ...Entity)

func (*World) GetEntitiesByType

func (w *World) GetEntitiesByType(entityType string) []Entity

func (*World) Init

func (w *World) Init()

func (*World) Update

func (w *World) Update(timeInterval time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL