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

Method reset

src/actions/Play.ts:169–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 }
168
169 static override async reset(): Promise<void> {
170 const players = this.engine.mediaPlayers();
171
172 // Stop and remove all the media players
173 for (const playerType of Object.keys(players)) {
174 this.engine.removeMediaPlayer(playerType);
175 }
176
177 this.engine.state({
178 music: [],
179 sound: [],
180 voice: []
181 });
182 }
183
184 static override matchString([action]: string[]): boolean {
185 return action === 'play';

Callers 3

applyMethod · 0.45
applyMethod · 0.45
resetGameFunction · 0.45

Calls 4

mediaPlayersMethod · 0.80
removeMediaPlayerMethod · 0.80
stateMethod · 0.80
keysMethod · 0.65

Tested by

no test coverage detected