()
| 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'; |
no test coverage detected