]> git.cworth.org Git - empires-server/commit
lmno: Generalize the support for multiple game engines
authorCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 03:57:27 +0000 (20:57 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 16:47:29 +0000 (09:47 -0700)
commitab53a3a530ad30db6cf52b8507fa1cbddb28eecf
tree71636586367012abf93a1744c953dd539ed44ddf
parentc60da21a61ee8b98550618aa197aefb3cf69a725
lmno: Generalize the support for multiple game engines

Rather than having repeated lists of the engines, we have one list at
the top of the file and then use that list to iterate over all engines
to mount their sub-apps at a path that is named by engine.name.

We also fix the construction of the Game class to use an imported
constructor (so that each game engine has objects of its own class
instead of only having games constructed via empires.Game()
exclusively).
empires.js
lmno.js