public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game) { UpdateCallInfo(System.Reflection.MethodBase.GetCurrentMethod().Name, createdByClient, clientOrAdminId, game); }
public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData gameData) { GameAdminData game = _games.FirstOrDefault(x => x.Id == gameData.Id); if (game == null) _games.Add(gameData); else { game.Name = gameData.Name; game.Rule = gameData.Rule; game.Options = gameData.Options; game.State = gameData.State; game.Clients = gameData.Clients; } GameCreated.Do(x => x(createdByClient, clientOrAdminId, gameData)); }
private static void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game) { Console.WriteLine("OnGameCreated: {0} {1} {2} {3} {4}", createdByClient, clientOrAdminId, game.Id, game.Name, game.Rule); if (game.Clients != null) { Console.WriteLine("\tClients: {0}", game.Clients.Count); foreach (ClientAdminData client in game.Clients) Console.WriteLine("\tClient: {0} {1} {2} {3:HH:mm:ss.fff} {4} {5} {6}", client.Id, client.Name, client.Team, client.ConnectTime, client.Address, client.Roles, client.State); } DisplayGameList(); }
public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game) { throw new NotImplementedException(); }
public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game) { ExceptionFreeAction(() => Callback.OnGameCreated(createdByClient, clientOrAdminId, game)); }