コード例 #1
0
 /// 49.)
 public void StartChampionSelection(double gameId, double optomisticLock, StartChampSelectDTO.Callback callback)
 {
     StartChampSelectDTO cb = new StartChampSelectDTO(callback);
     InvokeWithCallback("gameService", "startChampionSelection", new object[] { gameId, optomisticLock }, cb);
 }
コード例 #2
0
 public StartChampSelectDTO StartChampionSelection(double gameId, double optomisticLock)
 {
     int Id = Invoke("gameService", "startChampionSelection", new object[] { gameId, optomisticLock });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     StartChampSelectDTO result = new StartChampSelectDTO(messageBody);
     results.Remove(Id);
     return result;
 }
コード例 #3
0
 public async Task<StartChampSelectDTO> StartChampionSelection(Double gameId, Double optomisticLock)
 {
     int Id = Invoke("gameService", "startChampionSelection", new object[] { gameId, optomisticLock });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     StartChampSelectDTO result = new StartChampSelectDTO(messageBody);
     results.Remove(Id);
     return result;
 }