RemoveEntity removes the entity across all systems.
(e BasicEntity)
| 110 | |
| 111 | // RemoveEntity removes the entity across all systems. |
| 112 | func (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. |
| 119 | func (w *World) SortSystems() { |