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

Method AddAnimation

common/animation.go:61–63  ·  view source on GitHub ↗

AddAnimation registers an animation under its name, making it available through SelectAnimationByName.

(action *Animation)

Source from the content-addressed store, hash-verified

59// AddAnimation registers an animation under its name, making it available
60// through SelectAnimationByName.
61func (ac *AnimationComponent) AddAnimation(action *Animation) {
62 ac.Animations[action.Name] = action
63}
64
65// AddAnimations registers all given animations.
66func (ac *AnimationComponent) AddAnimations(actions []*Animation) {

Callers 3

AddDefaultAnimationMethod · 0.95
AddAnimationsMethod · 0.95

Calls

no outgoing calls

Tested by 1