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

Method willApply

src/actions/HideCharacter.ts:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 override async willApply(): Promise<void> {
42
43 if (!this.element.exists()) {
44 FancyError.show('action:hide_character:not_shown', {
45 asset: this.asset,
46 availableCharacters: Object.keys(this.engine.characters()),
47 statement: `<code class='language=javascript'>"${this._statement}"</code>`,
48 label: this.engine.state('label'),
49 step: this.engine.state('step')
50 });
51 throw new Error('Attempted to hide a character that was not being shown.');
52 }
53 }
54
55
56 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