public bool Registration(string name, string pass) { using (DataGame data = new DataGame()) { return(data.Registration(name, pass)); } }
public async Task <List <Game> > RefreshResult(User user) { using (DataGame dataGame = new DataGame()) { Console.WriteLine(user.NickName + " Refresh result"); return(await dataGame.RefreshResult(user)); } }
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); } }
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); } }
public void AddClan(Clan clan) { DataGame dataGame = new DataGame(); dataGame.CreateClan(clan); }