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

Method parseSetupShot

ozaria/engine/cinematic/CameraSystem.js:36–44  ·  view source on GitHub ↗

* May return command to reposition camera. * @param {Shot} shot - the cinematic shot data. * @returns {AbstractCommand[]} An array of commands to setup the shot.

(shot)

Source from the content-addressed store, hash-verified

34 * @returns {AbstractCommand[]} An array of commands to setup the shot.
35 */
36 parseSetupShot (shot) {
37 const commands = []
38 const cameraMove = getCamera(shot)
39 if (cameraMove) {
40 const { pos: { x, y }, zoom } = cameraMove
41 commands.push(this.zoomToCommand({ x, y }, zoom))
42 }
43 return commands
44 }
45
46 parseDialogNode (dialogNode) {
47 const commands = []

Callers

nothing calls this directly

Calls 1

zoomToCommandMethod · 0.95

Tested by

no test coverage detected