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

Method constructor

src/actions/Stop.ts:17–29  ·  view source on GitHub ↗
([action, type, media, ...props]: string[])

Source from the content-addressed store, hash-verified

15 player: any;
16
17 constructor([action, type, media, ...props]: string[]) {
18 super();
19
20 this.type = type as MediaType;
21 this.media = media;
22 this.props = props;
23
24 if (typeof media === 'undefined' || media === 'with') {
25 this.player = this.engine.mediaPlayers(type);
26 } else {
27 this.player = this.engine.mediaPlayer(type, media);
28 }
29 }
30
31 override async willApply(): Promise<void> {
32 if (this.player) {

Callers

nothing calls this directly

Calls 2

mediaPlayersMethod · 0.80
mediaPlayerMethod · 0.80

Tested by

no test coverage detected