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

Method buildActions

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

Source from the content-addressed store, hash-verified

153 }
154
155 buildActions () {
156 if (!this.isFullyLoaded()) { return null }
157 this.actions = $.extend(true, {}, this.get('actions'))
158 for (const name in this.actions) {
159 const action = this.actions[name]
160 action.name = name
161 const object = action.relatedActions != null ? action.relatedActions : {}
162 for (const relatedName in object) {
163 const relatedAction = object[relatedName]
164 relatedAction.name = action.name + '_' + relatedName
165 this.actions[relatedAction.name] = relatedAction
166 }
167 }
168 return this.actions
169 }
170
171 fillOptions (options) {
172 if (options == null) { options = {} }

Callers 4

resetSpriteSheetCacheMethod · 0.95
getActionsMethod · 0.95
initBuildMethod · 0.95
saveChangesMethod · 0.80

Calls 2

isFullyLoadedMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected