AddByInterface Allows an Entity to be added directly using the Animtionable interface. which every entity containing the BasicEntity,AnimationComponent,and RenderComponent anonymously, automatically satisfies.
(i ecs.Identifier)
| 119 | |
| 120 | // AddByInterface Allows an Entity to be added directly using the Animtionable interface. which every entity containing the BasicEntity,AnimationComponent,and RenderComponent anonymously, automatically satisfies. |
| 121 | func (a *AnimationSystem) AddByInterface(i ecs.Identifier) { |
| 122 | o, _ := i.(Animationable) |
| 123 | a.Add(o.GetBasicEntity(), o.GetAnimationComponent(), o.GetRenderComponent()) |
| 124 | } |
| 125 | |
| 126 | // Remove stops tracking the given entity. |
| 127 | func (a *AnimationSystem) Remove(basic ecs.BasicEntity) { |
nothing calls this directly
no test coverage detected