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

Method apply

src/actions/End.ts:55–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 override async apply(): Promise<void> {
56 const engine = this.engine;
57
58 engine.global('playing', false);
59
60 engine.resetGame();
61 engine.showMainScreen();
62
63
64 const engineElement = engine.element();
65
66 engineElement.find('[data-component="quick-menu"]').removeClass('splash-screen');
67 engineElement.find('[data-component="game-screen"]').removeClass('splash-screen');
68 }
69
70 override async willRevert(): Promise<void> {
71 throw new Error('End action is not reversible');

Callers 4

executeActionMethod · 0.45
keyboardShortcutFunction · 0.45
assertAsyncFunction · 0.45
runFunction · 0.45

Calls 4

globalMethod · 0.80
resetGameMethod · 0.80
showMainScreenMethod · 0.80
elementMethod · 0.45

Tested by

no test coverage detected