public void Register() { if (PlayerState != PlayerState.INITIAL) { throw new Exception("Action not available"); } client.Send(new RegisterRequestOrder(PlayerType, Name)); PlayerState = PlayerState.REGISTERING; }
/// <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)); }