fix typos
This commit is contained in:
parent
a73928bbd1
commit
f0cccc2cc8
@ -41,7 +41,7 @@ func receiveHandler(connection *websocket.Conn, output chan string) {
|
|||||||
matchID = resp.MatchID
|
matchID = resp.MatchID
|
||||||
output <- "tome_lib found"
|
output <- "tome_lib found"
|
||||||
case tome_lib.SessionRespJoinError:
|
case tome_lib.SessionRespJoinError:
|
||||||
output <- "error joining tome_lib"
|
output <- "error joining game"
|
||||||
case tome_lib.SessionRespPlayed:
|
case tome_lib.SessionRespPlayed:
|
||||||
if resp.GameResult != nil {
|
if resp.GameResult != nil {
|
||||||
output <- "played succesfully"
|
output <- "played succesfully"
|
||||||
@ -70,13 +70,13 @@ func receiveHandler(connection *websocket.Conn, output chan string) {
|
|||||||
case tome_lib.SessionRespBroadcastUpdate:
|
case tome_lib.SessionRespBroadcastUpdate:
|
||||||
//we don't handle updates
|
//we don't handle updates
|
||||||
case tome_lib.SessionRespBroadcastScoJoin:
|
case tome_lib.SessionRespBroadcastScoJoin:
|
||||||
output <- "Scourge has joined the tome_lib"
|
output <- "Scourge has joined the game"
|
||||||
case tome_lib.SessionRespBroadcastSenJoin:
|
case tome_lib.SessionRespBroadcastSenJoin:
|
||||||
output <- "Sentinal has joined the tome_lib"
|
output <- "Sentinal has joined the game"
|
||||||
case tome_lib.SessionRespBroadcastScoLeft:
|
case tome_lib.SessionRespBroadcastScoLeft:
|
||||||
output <- "Scourge has left the tome_lib"
|
output <- "Scourge has left the game"
|
||||||
case tome_lib.SessionRespBroadcastSenLeft:
|
case tome_lib.SessionRespBroadcastSenLeft:
|
||||||
output <- "Sentinal has left the tome_lib"
|
output <- "Sentinal has left the game"
|
||||||
case tome_lib.SessionRespBroadcastSenReady:
|
case tome_lib.SessionRespBroadcastSenReady:
|
||||||
output <- "Sentinal is ready"
|
output <- "Sentinal is ready"
|
||||||
case tome_lib.SessionRespBroadcastScoReady:
|
case tome_lib.SessionRespBroadcastScoReady:
|
||||||
|
@ -38,7 +38,7 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
|
|||||||
container.Output <- "joined as scourge"
|
container.Output <- "joined as scourge"
|
||||||
case tome_lib.SessionRespFound:
|
case tome_lib.SessionRespFound:
|
||||||
matchID = resp.MatchID
|
matchID = resp.MatchID
|
||||||
container.Output <- "tome_lib found"
|
container.Output <- "game found"
|
||||||
case tome_lib.SessionRespPlayed:
|
case tome_lib.SessionRespPlayed:
|
||||||
if resp.GameResult != nil {
|
if resp.GameResult != nil {
|
||||||
switch resp.GameResult.ResultType {
|
switch resp.GameResult.ResultType {
|
||||||
@ -54,7 +54,7 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
|
|||||||
container.Output <- "error playing"
|
container.Output <- "error playing"
|
||||||
}
|
}
|
||||||
case tome_lib.SessionRespLeft:
|
case tome_lib.SessionRespLeft:
|
||||||
container.Output <- "tome_lib left"
|
container.Output <- "game left"
|
||||||
matchID = uuid.Nil
|
matchID = uuid.Nil
|
||||||
return
|
return
|
||||||
case tome_lib.SessionRespBroadcastSenTurn:
|
case tome_lib.SessionRespBroadcastSenTurn:
|
||||||
@ -68,13 +68,13 @@ func receiveHandler(connection *websocket.Conn, container *UIContainer) {
|
|||||||
case tome_lib.SessionRespBroadcastUpdate:
|
case tome_lib.SessionRespBroadcastUpdate:
|
||||||
container.GetUpdate <- true
|
container.GetUpdate <- true
|
||||||
case tome_lib.SessionRespBroadcastScoJoin:
|
case tome_lib.SessionRespBroadcastScoJoin:
|
||||||
container.Output <- "Scourge has joined the tome_lib"
|
container.Output <- "Scourge has joined the game"
|
||||||
case tome_lib.SessionRespBroadcastSenJoin:
|
case tome_lib.SessionRespBroadcastSenJoin:
|
||||||
container.Output <- "Sentinal has joined the tome_lib"
|
container.Output <- "Sentinal has joined the game"
|
||||||
case tome_lib.SessionRespBroadcastScoLeft:
|
case tome_lib.SessionRespBroadcastScoLeft:
|
||||||
container.Output <- "Scourge has left the tome_lib"
|
container.Output <- "Scourge has left the game"
|
||||||
case tome_lib.SessionRespBroadcastSenLeft:
|
case tome_lib.SessionRespBroadcastSenLeft:
|
||||||
container.Output <- "Sentinal has left the tome_lib"
|
container.Output <- "Sentinal has left the game"
|
||||||
case tome_lib.SessionRespBroadcastSenReady:
|
case tome_lib.SessionRespBroadcastSenReady:
|
||||||
container.Output <- "Sentinal is ready"
|
container.Output <- "Sentinal is ready"
|
||||||
case tome_lib.SessionRespBroadcastScoReady:
|
case tome_lib.SessionRespBroadcastScoReady:
|
||||||
|
Loading…
Reference in New Issue
Block a user