MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / revert

Method revert

src/actions/Clear.ts:39–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 override async revert(): Promise<void> {
40 const last = this.engine.history('clear').pop();
41
42 if (last === 'nvl') {
43 this.engine.global('_should_restore_nvl', true);
44 }
45 }
46
47 override async didRevert(): Promise<ActionRevertResult> {
48 return { advance: true, step: true };

Callers

nothing calls this directly

Calls 3

historyMethod · 0.80
globalMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected