Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public GameMenuu(Authentification auth)
 {
     this.auth = auth;
 }
Exemplo n.º 3
0
 public GameWithBot(Authentification auth)
 {
     this.auth = auth;
 }
Exemplo n.º 4
0
 public GameProcess(Authentification auth)
 {
     this.auth = auth;
 }
Exemplo n.º 5
0
 public Registration(Authentification auth)
 {
     this.auth = auth;
 }
Exemplo n.º 6
0
 public Login(Authentification auth)
 {
     this.auth = auth;
 }
Exemplo n.º 7
0
 public PrivateGame(Authentification authentification)
 {
     this.auth = authentification;
 }