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

Method getDefaultActions

app/models/ThangType.js:146–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 getDefaultActions () {
147 const actions = []
148 for (const action of Array.from(_.values(this.getActions()))) {
149 if (!_.any(ThangType.defaultActions, prefix => _.string.startsWith(action.name, prefix))) { continue }
150 actions.push(action)
151 }
152 return actions
153 }
154
155 buildActions () {
156 if (!this.isFullyLoaded()) { return null }

Callers

nothing calls this directly

Calls 1

getActionsMethod · 0.95

Tested by

no test coverage detected