AddByInterface Allows an Entity to be added directly using the Audioable interface, which every entity containing the BasicEntity and AnimationComponent anonymously, automatically satisfies.
(i ecs.Identifier)
| 139 | // which every entity containing the BasicEntity and AnimationComponent anonymously, |
| 140 | // automatically satisfies. |
| 141 | func (a *AudioSystem) AddByInterface(i ecs.Identifier) { |
| 142 | o, _ := i.(Audioable) |
| 143 | a.Add(o.GetBasicEntity(), o.GetAudioComponent()) |
| 144 | } |
| 145 | |
| 146 | // Remove removes an entity from the AudioSystem |
| 147 | func (a *AudioSystem) Remove(basic ecs.BasicEntity) { |
nothing calls this directly
no test coverage detected