AddByInterface adds any Renderable to the render system. Any Entity containing a BasicEntity,RenderComponent, and SpaceComponent anonymously does this automatically
(i ecs.Identifier)
| 315 | |
| 316 | // AddByInterface adds any Renderable to the render system. Any Entity containing a BasicEntity,RenderComponent, and SpaceComponent anonymously does this automatically |
| 317 | func (rs *RenderSystem) AddByInterface(i ecs.Identifier) { |
| 318 | o, _ := i.(Renderable) |
| 319 | rs.Add(o.GetBasicEntity(), o.GetRenderComponent(), o.GetSpaceComponent()) |
| 320 | } |
| 321 | |
| 322 | // Remove removes an entity from the RenderSystem |
| 323 | func (rs *RenderSystem) Remove(basic ecs.BasicEntity) { |
nothing calls this directly
no test coverage detected