@@ -18,7 +18,7 @@ var autoDetectAddress = flag.Bool("autoDetectHost", true, "Automatically detect
1818var refBoxAddr = flag .String ("address" , "localhost:10008" , "Address to connect to" )
1919var privateKeyLocation = flag .String ("privateKey" , "" , "A private key to be used to sign messages" )
2020var teamName = flag .String ("teamName" , "Test Team" , "The name of the team as it is sent by the referee" )
21- var teamColor = flag .String ("teamColor" , "" , "The color of the team as it is sent by the referee" )
21+ var teamColor = flag .String ("teamColor" , "" , "The color of the team as it is sent by the referee (YELLOW or BLUE) " )
2222
2323var privateKey * rsa.PrivateKey
2424
@@ -62,9 +62,9 @@ func main() {
6262 c .sendDesiredKeeper (3 )
6363
6464 for {
65- c .SendAdvantageChoice (rcon .AdvantageResponse_CONTINUE )
65+ c .SendAdvantageChoice (rcon .AdvantageChoice_CONTINUE )
6666 time .Sleep (time .Millisecond * 1000 )
67- c .SendAdvantageChoice (rcon .AdvantageResponse_STOP )
67+ c .SendAdvantageChoice (rcon .AdvantageChoice_STOP )
6868 time .Sleep (time .Millisecond * 1000 )
6969 }
7070}
@@ -119,8 +119,8 @@ func (c *Client) sendDesiredKeeper(id int32) (accepted bool) {
119119 return c .sendRequest (& request )
120120}
121121
122- func (c * Client ) SendAdvantageChoice (choice rcon.AdvantageResponse ) {
123- reply := rcon.TeamToController_AdvantageResponse { AdvantageResponse : choice }
122+ func (c * Client ) SendAdvantageChoice (choice rcon.AdvantageChoice ) {
123+ reply := rcon.TeamToController_AdvantageChoice { AdvantageChoice : choice }
124124 response := rcon.TeamToController {Msg : & reply }
125125 c .sendRequest (& response )
126126}
0 commit comments