Exemple #1
0
 public bool Registration(string name, string pass)
 {
     using (DataGame data = new DataGame())
     {
         return(data.Registration(name, pass));
     }
 }
Exemple #2
0
 public async Task <List <Game> > RefreshResult(User user)
 {
     using (DataGame dataGame = new DataGame())
     {
         Console.WriteLine(user.NickName + " Refresh result");
         return(await dataGame.RefreshResult(user));
     }
 }
Exemple #3
0
        public void EndGame(Game game)
        {
            if (CachData.Games.ContainsKey(game))
            {
                CachData.Games[game].CallBack1.EndGame(game);
                CachData.Games[game].CallBack2.EndGame(game);

                CachData.Games.Remove(game);

                DataGame dataGame = new DataGame();
                dataGame.EndGame(game);
            }
        }
Exemple #4
0
 public User Avtorisation(string name, string pass)
 {
     using (DataGame data = new DataGame())
     {
         User returnUser = data.Login(name);
         if (returnUser == null)
         {
             return(null);
         }
         if (CachData.UsersOnline.ContainsKey(returnUser))
         {
             return(null);
         }
         return(returnUser);
     }
 }
Exemple #5
0
        public void AddClan(Clan clan)
        {
            DataGame dataGame = new DataGame();

            dataGame.CreateClan(clan);
        }