MCPcopy Create free account
hub / github.com/codecombat/codecombat / getContainersForAnimation

Method getContainersForAnimation

app/models/ThangType.js:669–679  ·  view source on GitHub ↗
(animation, action)

Source from the content-addressed store, hash-verified

667 }
668
669 getContainersForAnimation (animation, action) {
670 const rawAnimation = this.get('raw').animations[animation]
671 if (!rawAnimation) {
672 console.error('thang type', this.get('name'), 'is missing animation', animation, 'from action', action)
673 }
674 let { containers } = rawAnimation
675 for (animation of Array.from(this.get('raw').animations[animation].animations)) {
676 containers = containers.concat(this.getContainersForAnimation(animation.gn, action))
677 }
678 return containers
679 }
680
681 getContainersForActions (actionNames) {
682 const containersToRender = {}

Callers 1

Calls 2

getMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected