Documentation ¶
Index ¶
- type World
- func (w *World) AddEntity(entity *world.Entity)
- func (w *World) Count() int
- func (w *World) Debug()
- func (w *World) EntityByID(entityID world.EntityID, callback func(entity *world.Entity) (remove bool))
- func (w *World) ForEntities(callback func(entity *world.Entity) (stop, remove bool)) bool
- func (w *World) ForEntitiesAndOthers(entityCallback func(entity *world.Entity) (stop bool, radius float32), ...) bool
- func (w *World) ForEntitiesInRadius(position world.Vec2f, radius float32, ...) bool
- func (w *World) Resize(radius float32)
- func (w *World) SetParallel(_ bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type World ¶
type World struct {
// contains filtered or unexported fields
}
A world holds entities
func (*World) EntityByID ¶
func (*World) ForEntities ¶
func (*World) ForEntitiesAndOthers ¶
func (*World) ForEntitiesInRadius ¶
Click to show internal directories.
Click to hide internal directories.