public async Task RunAsync() { var json = File.ReadAllText("settings.json"); var settings = JsonConvert.DeserializeObject <Settings>(json); client = new HttpClient(); client.BaseAddress = new Uri(settings.BaseAddress); Authentification auth = new Authentification(client); Login login = new Login(auth); Registration registration = new Registration(auth); LeaderBoard leaderBoard = new LeaderBoard(client); MainMenu mainMenu = new MainMenu(login, registration, leaderBoard); await mainMenu.RunMainMenuAsync(); }
public GameMenuu(Authentification auth) { this.auth = auth; }
public GameWithBot(Authentification auth) { this.auth = auth; }
public GameProcess(Authentification auth) { this.auth = auth; }
public Registration(Authentification auth) { this.auth = auth; }
public Login(Authentification auth) { this.auth = auth; }
public PrivateGame(Authentification authentification) { this.auth = authentification; }