예제 #1
0
 public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game)
 {
     UpdateCallInfo(System.Reflection.MethodBase.GetCurrentMethod().Name, createdByClient, clientOrAdminId, game);
 }
예제 #2
0
파일: Admin.cs 프로젝트: SinaC/TetriNET2
        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));
        }
예제 #3
0
파일: Program.cs 프로젝트: SinaC/TetriNET2
        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();
 }
예제 #5
0
파일: Admin.cs 프로젝트: SinaC/TetriNET2
 public void OnGameCreated(bool createdByClient, Guid clientOrAdminId, GameAdminData game)
 {
     ExceptionFreeAction(() => Callback.OnGameCreated(createdByClient, clientOrAdminId, game));
 }