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

Method willApply

src/actions/HideCharacterLayer.ts:48–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 override async willApply(): Promise<void> {
49
50 if (!this.element.exists()) {
51 FancyError.show('action:hide_character_layer:layer_not_shown', {
52 layer: this.layer,
53 asset: this.asset,
54 availableCharacters: Object.keys(this.engine.characters()),
55 statement: `<code class='language=javascript'>"${this._statement}"</code>`,
56 label: this.engine.state('label'),
57 step: this.engine.state('step')
58 });
59 throw new Error('Attempted to hide a character that was not being shown.');
60 }
61 }
62
63
64 override async apply(): Promise<void> {

Callers

nothing calls this directly

Calls 4

charactersMethod · 0.80
stateMethod · 0.80
keysMethod · 0.65
showMethod · 0.45

Tested by

no test coverage detected