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

Method reset

ozaria/engine/cinematic/UndoSystem.js:12–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 reset () {
13 // These commands are side effects required to undo forward commands.
14 this.additionalCommandStateStack = []
15
16 // We populate this stack from the cinematicCommandRunner, and these are
17 // the commands that run the cinematic forward.
18 this.undoCommandStack = []
19
20 // The undo commands for a current shot.
21 this.currentNodeUndoCommands = []
22
23 this._ignoreUndoCommands = false
24 this.markFirstStopPoint = null
25 }
26
27 set ignoreUndoCommands (v) {
28 this._ignoreUndoCommands = v

Callers 3

constructorMethod · 0.95
constructorMethod · 0.45
destroyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected