]> git.cworth.org Git - empires-server/blobdiff - game.js
Plumb a game's ID value down into the base class
[empires-server] / game.js
diff --git a/game.js b/game.js
index fb2d75afa87214f1eaa4fe426772ca59f39e24f3..706bfc7a153353358d0064f0b15deed18f44f09e 100644 (file)
--- a/game.js
+++ b/game.js
@@ -1,6 +1,7 @@
 /* Base class providing common code for game engine implementations. */
 class Game {
-  constructor() {
+  constructor(id) {
+    this.id = id;
     this.clients = [];
     this.next_client_id = 1;
   }