MCPcopy Create free account
hub / github.com/EngoEngine/ecs / RemoveEntity

Method RemoveEntity

world.go:112–116  ·  view source on GitHub ↗

RemoveEntity removes the entity across all systems.

(e BasicEntity)

Source from the content-addressed store, hash-verified

110
111// RemoveEntity removes the entity across all systems.
112func (w *World) RemoveEntity(e BasicEntity) {
113 for _, sys := range w.systems {
114 sys.Remove(e)
115 }
116}
117
118// SortSystems sorts the systems in the world.
119func (w *World) SortSystems() {

Callers 1

TestAddRemoveFunction · 0.95

Calls 1

RemoveMethod · 0.65

Tested by 1

TestAddRemoveFunction · 0.76