fix typos

This commit is contained in:
stryan 2021-10-02 13:29:33 -04:00
parent a73928bbd1
commit f0cccc2cc8
2 changed files with 11 additions and 11 deletions

View File

@ -41,7 +41,7 @@ func receiveHandler(connection *websocket.Conn, output chan string) {
matchID = resp.MatchID
output <- "tome_lib found"
case tome_lib.SessionRespJoinError:
output <- "error joining tome_lib"
output <- "error joining game"
case tome_lib.SessionRespPlayed:
if resp.GameResult != nil {
output <- "played succesfully"
@ -70,13 +70,13 @@ func receiveHandler(connection *websocket.Conn, output chan string) {
case tome_lib.SessionRespBroadcastUpdate:
//we don't handle updates
case tome_lib.SessionRespBroadcastScoJoin:
output <- "Scourge has joined the tome_lib"
output <- "Scourge has joined the game"
case tome_lib.SessionRespBroadcastSenJoin:
output <- "Sentinal has joined the tome_lib"
output <- "Sentinal has joined the game"
case tome_lib.SessionRespBroadcastScoLeft:
output <- "Scourge has left the tome_lib"
output <- "Scourge has left the game"
case tome_lib.SessionRespBroadcastSenLeft:
output <- "Sentinal has left the tome_lib"
output <- "Sentinal has left the game"
case tome_lib.SessionRespBroadcastSenReady:
output <- "Sentinal is ready"
case tome_lib.SessionRespBroadcastScoReady:

View File

@ -38,7 +38,7 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
container.Output <- "joined as scourge"
case tome_lib.SessionRespFound:
matchID = resp.MatchID
container.Output <- "tome_lib found"
container.Output <- "game found"
case tome_lib.SessionRespPlayed:
if resp.GameResult != nil {
switch resp.GameResult.ResultType {
@ -54,7 +54,7 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
container.Output <- "error playing"
}
case tome_lib.SessionRespLeft:
container.Output <- "tome_lib left"
container.Output <- "game left"
matchID = uuid.Nil
return
case tome_lib.SessionRespBroadcastSenTurn:
@ -68,13 +68,13 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
case tome_lib.SessionRespBroadcastUpdate:
container.GetUpdate <- true
case tome_lib.SessionRespBroadcastScoJoin:
container.Output <- "Scourge has joined the tome_lib"
container.Output <- "Scourge has joined the game"
case tome_lib.SessionRespBroadcastSenJoin:
container.Output <- "Sentinal has joined the tome_lib"
container.Output <- "Sentinal has joined the game"
case tome_lib.SessionRespBroadcastScoLeft:
container.Output <- "Scourge has left the tome_lib"
container.Output <- "Scourge has left the game"
case tome_lib.SessionRespBroadcastSenLeft:
container.Output <- "Sentinal has left the tome_lib"
container.Output <- "Sentinal has left the game"
case tome_lib.SessionRespBroadcastSenReady:
container.Output <- "Sentinal is ready"
case tome_lib.SessionRespBroadcastScoReady: