Disabling registration of games

This commit is contained in:
Dan 2026-01-24 12:54:52 +00:00
parent b9bea16f78
commit 0bed7084cf

View file

@ -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