()
| 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> { |
nothing calls this directly
no test coverage detected