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

Method getContainersForActions

app/models/ThangType.js:681–694  ·  view source on GitHub ↗
(actionNames)

Source from the content-addressed store, hash-verified

679 }
680
681 getContainersForActions (actionNames) {
682 const containersToRender = {}
683 const actions = this.getActions()
684 for (const actionName of Array.from(actionNames)) {
685 const action = _.find(actions, { name: actionName })
686 if (action.container) {
687 containersToRender[action.container] = true
688 } else if (action.animation) {
689 const animationContainers = this.getContainersForAnimation(action.animation, action)
690 for (const container of Array.from(animationContainers)) { containersToRender[container.gn] = true }
691 }
692 }
693 return _.keys(containersToRender)
694 }
695
696 nextForAction (action) {
697 let next = true

Callers

nothing calls this directly

Calls 2

getActionsMethod · 0.95

Tested by

no test coverage detected