MCPcopy Index your code
hub / github.com/EngoEngine/engo / Update

Method Update

common/animation_test.go:233–252  ·  view source on GitHub ↗
(dt float32)

Source from the content-addressed store, hash-verified

231func (t *TestAnimationSystem) Remove(b ecs.BasicEntity) {}
232
233func (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
254func (t *TestAnimationSystem) GetCurrentFrameDrawables() []int {
255 ret := []int{}

Callers

nothing calls this directly

Calls 3

NewAnimationComponentFunction · 0.85
SelectAnimationByNameMethod · 0.80
AddDefaultAnimationMethod · 0.80

Tested by

no test coverage detected