X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empires.js;h=5053b61581ec53ec6d308dabf4319c9dfdf644ec;hb=bb50292173f978457b4b64d6495db96cd581a4d6;hp=78e7f2591d6b18cd14927b466d0f7b55399a1d94;hpb=40abb70f85a1f833c6dfcc8541db3bf876096616;p=empires-server diff --git a/empires.js b/empires.js index 78e7f25..5053b61 100644 --- a/empires.js +++ b/empires.js @@ -1,8 +1,6 @@ const express = require("express"); const Game = require("./game.js"); -const engine_name = "empires"; - const router = express.Router(); const GameState = { @@ -34,8 +32,8 @@ function shuffle(a) { } class Empires extends Game { - constructor() { - super(engine_name); + constructor(id) { + super(id); this._spectators = []; this.next_spectator_id = 1; this._players = []; @@ -353,5 +351,3 @@ Empires.meta = { name: "Empires", identifier: "empires" }; - -exports.meta = Empires.meta;