(dt float32)
| 231 | func (t *TestAnimationSystem) Remove(b ecs.BasicEntity) {} |
| 232 | |
| 233 | func (t *TestAnimationSystem) Update(dt float32) { |
| 234 | switch t.updates { |
| 235 | case 2: |
| 236 | t.entities[2].SelectAnimationByName("OneZero") |
| 237 | case 3: |
| 238 | drawables := []Drawable{ |
| 239 | &TestDrawable{11}, |
| 240 | &TestDrawable{12}, |
| 241 | &TestDrawable{13}, |
| 242 | } |
| 243 | *t.entities[3].AnimationComponent = NewAnimationComponent(drawables, 0.1) |
| 244 | t.entities[3].AddDefaultAnimation(&Animation{ |
| 245 | Name: "Default", |
| 246 | Frames: []int{0, 1, 2}, |
| 247 | }) |
| 248 | case 7: |
| 249 | t.entities[1].SelectAnimationByName("Nothing") |
| 250 | } |
| 251 | t.updates++ |
| 252 | } |
| 253 | |
| 254 | func (t *TestAnimationSystem) GetCurrentFrameDrawables() []int { |
| 255 | ret := []int{} |
nothing calls this directly
no test coverage detected