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

Method apply

src/actions/Pause.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 override async apply(): Promise<void> {
37 if (Array.isArray(this.player)) {
38 for (const player of this.player) {
39 player.pause();
40 }
41 } else {
42 this.player.pause();
43 }
44 }
45
46 override async didApply(): Promise<ActionApplyResult> {
47 const currentState = this.engine.state(this.type);

Callers

nothing calls this directly

Calls 1

pauseMethod · 0.80

Tested by

no test coverage detected