AddByInterface adds the Entity to the system as long as it satisfies, Mouseable. Any Entity containing a BasicEntity,MouseComponent, and RenderComponent, automatically does this.
(i ecs.Identifier)
| 162 | |
| 163 | // AddByInterface adds the Entity to the system as long as it satisfies, Mouseable. Any Entity containing a BasicEntity,MouseComponent, and RenderComponent, automatically does this. |
| 164 | func (m *MouseSystem) AddByInterface(i ecs.Identifier) { |
| 165 | o, _ := i.(Mouseable) |
| 166 | m.Add(o.GetBasicEntity(), o.GetMouseComponent(), o.GetSpaceComponent(), o.GetRenderComponent()) |
| 167 | } |
| 168 | |
| 169 | // Remove removes an entity from the MouseSystem. |
| 170 | func (m *MouseSystem) Remove(basic ecs.BasicEntity) { |
nothing calls this directly
no test coverage detected