]> git.cworth.org Git - lmno.games/commitdiff
Add handling for a spectators list in addition to the players list
authorCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 15:27:09 +0000 (08:27 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 15:27:09 +0000 (08:27 -0700)
The model is that when people initially join the game, (providing a
name for themselves), they are a spectator. They then move from the
spectator list to the player list when then they choose a character
name.

The server isn't very clever about this. It has distinct endpoints for
adding/removing players and adding/removing spectators. So in this
code we have to explicitly remove ourselves as a spectator when we add
ourselves as a player.


No differences found