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

Method mapFrames

app/models/ThangType.js:295–298  ·  view source on GitHub ↗
(frames, frameOffset)

Source from the content-addressed store, hash-verified

293 }
294
295 mapFrames (frames, frameOffset) {
296 if (!_.isString(frames)) { return frames } // don't accidentally do this again
297 return (Array.from(frames.split(',')).map((f) => parseInt(f, 10) + frameOffset))
298 }
299
300 finishBuild () {
301 if (_.isEmpty(this.builder._animations)) { return }

Callers 2

addPortraitMethod · 0.95
addGeneralFramesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected