Add adds an entity to the AudioSystem
(basic *ecs.BasicEntity, audio *AudioComponent)
| 132 | |
| 133 | // Add adds an entity to the AudioSystem |
| 134 | func (a *AudioSystem) Add(basic *ecs.BasicEntity, audio *AudioComponent) { |
| 135 | a.entities = append(a.entities, audioEntity{basic, audio}) |
| 136 | } |
| 137 | |
| 138 | // AddByInterface Allows an Entity to be added directly using the Audioable interface, |
| 139 | // which every entity containing the BasicEntity and AnimationComponent anonymously, |