Exemplo n.º 1
0
 public void Register()
 {
     if (PlayerState != PlayerState.INITIAL)
     {
         throw new Exception("Action not available");
     }
     client.Send(new RegisterRequestOrder(PlayerType, Name));
     PlayerState = PlayerState.REGISTERING;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Send the color the the client-side
 /// </summary>
 /// <param name="color"></param>
 public void SetColor(Color color)
 {
     Color = color;
     client.Send(new AssignColorOrder(color));
 }