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

Method AddDefaultAnimation

common/animation.go:54–57  ·  view source on GitHub ↗

AddDefaultAnimation adds an animation which is used when no other animation is playing.

(action *Animation)

Source from the content-addressed store, hash-verified

52
53// AddDefaultAnimation adds an animation which is used when no other animation is playing.
54func (ac *AnimationComponent) AddDefaultAnimation(action *Animation) {
55 ac.AddAnimation(action)
56 ac.def = action
57}
58
59// AddAnimation registers an animation under its name, making it available
60// through SelectAnimationByName.

Callers 6

UpdateMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80
CreateEntityMethod · 0.80

Calls 1

AddAnimationMethod · 0.95

Tested by 4

UpdateMethod · 0.64
SetupMethod · 0.64