]> git.cworth.org Git - lmno-api/commit
empires 0.7: Add endpoints to add, remove, and list spectators
authorCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 16:09:15 +0000 (09:09 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 16:11:41 +0000 (09:11 -0700)
commit366bac0a9b0f26218d5d78b7ba547717fb07a987
treede109396fbdc5bd36ce8be31237c010fe864f596
parent90f657fbcb0291228454de58a43466ff569dea6b
empires 0.7: Add endpoints to add, remove, and list spectators

The endpoints are:

  POST /spectator
  DELETE /spectator/<ID>
  GET /spectators

The addition of a separate notion of spectators from players gives us
two advantages:

  1. People can just watch if they want to

  2. A client can naturally separate the selection of the player's name
     (to create the spectator, join the game, see who else is in, etc.),
     from the selection of the player's character. This separation should
     avoid some confusion we saw in playtesting where players confused
     which name was which.
empires.txt