]> git.cworth.org Git - empires-server/blobdiff - empires.js
Plumb a game's ID value down into the base class
[empires-server] / empires.js
index 3072a121e68c98d0ac060218437c4e53860ae0a5..cb7571d67ef3ff81934593cf76c8b5c407c65ce6 100644 (file)
@@ -32,8 +32,8 @@ function shuffle(a) {
 }
 
 class Empires extends Game {
-  constructor() {
-    super();
+  constructor(id) {
+    super(id);
     this._spectators = [];
     this.next_spectator_id = 1;
     this._players = [];