예제 #1
0
 public async Task<GameDTO> GetLatestGameTimerState(Double arg0, String arg1, Int32 arg2)
 {
     int Id = Invoke("gameService", "getLatestGameTimerState", new object[] { arg0, arg1, arg2 });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     GameDTO result = new GameDTO(messageBody);
     results.Remove(Id);
     return result;
 }
예제 #2
0
 public async Task<GameDTO> CreatePracticeGame(PracticeGameConfig practiceGameConfig)
 {
     int Id = Invoke("gameService", "createPracticeGame", new object[] { practiceGameConfig.GetBaseTypedObject() });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     GameDTO result = new GameDTO(messageBody);
     results.Remove(Id);
     return result;
 }
예제 #3
0
 /// 51.)
 public void GetLatestGameTimerState(Double arg0, String arg1, Int32 arg2, GameDTO.Callback callback)
 {
     GameDTO cb = new GameDTO(callback);
     InvokeWithCallback("gameService", "getLatestGameTimerState", new object[] { arg0, arg1, arg2 }, cb);
 }
예제 #4
0
 /// 46.)
 public void CreatePracticeGame(PracticeGameConfig practiceGameConfig, GameDTO.Callback callback)
 {
     GameDTO cb = new GameDTO(callback);
     InvokeWithCallback("gameService", "createPracticeGame", new object[] { practiceGameConfig.GetBaseTypedObject() }, cb);
 }