Beispiel #1
0
 void ISettableField.Set(Symbols symbol, int x, int y)
 {
     m_selectOperation
     .Select(new SelectOperationRequest(symbol, x, y).ToJson())
     .ToObservable()
     .Subscribe(json =>
     {
         SelectOperationResponse response = JsonConvert.DeserializeObject <SelectOperationResponse>(json);
         if (string.IsNullOrEmpty(response.Error))
         {
             Debug.Log($"{nameof(ClientFieldState)}: select completed!");
         }
         else
         {
             Debug.LogError($"{nameof(ClientFieldState)}: select failed with {response.Error}!");
         }
     });
 }