Disabling registration of games
This commit is contained in:
parent
b9bea16f78
commit
0bed7084cf
1 changed files with 19 additions and 19 deletions
|
|
@ -32,25 +32,25 @@ class GameEngine {
|
||||||
const self = this;
|
const self = this;
|
||||||
const def = this.definition;
|
const def = this.definition;
|
||||||
|
|
||||||
this.terminal.registerCommand(
|
// this.terminal.registerCommand(
|
||||||
def.command || def.id,
|
// def.command || def.id,
|
||||||
def.description || `Play ${def.name}`,
|
// def.description || `Play ${def.name}`,
|
||||||
async (args) => {
|
// async (args) => {
|
||||||
if (args[0] === "reset") {
|
// if (args[0] === "reset") {
|
||||||
self._reset();
|
// self._reset();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (args[0] === "reset-series" && self.seriesId) {
|
// if (args[0] === "reset-series" && self.seriesId) {
|
||||||
self._resetSeries();
|
// self._resetSeries();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (args[0] === "continue" || args[0] === "resume") {
|
// if (args[0] === "continue" || args[0] === "resume") {
|
||||||
await self.start(true);
|
// await self.start(true);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
await self.start();
|
// await self.start();
|
||||||
},
|
// },
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the game
|
// Start the game
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue