Exemplo n.º 1
0
        public MainScreen()
        {
            var clientConfig = new GameClientConfig {
                AuthServerAddress = new NetworkAddress(App.Config.AuthHost, App.Config.AuthPort),
                GameServerAddress = new NetworkAddress(App.Config.GameHost, App.Config.GamePort)
            };

            client = new LegacyClient(clientConfig);

            loginScreen = new LoginScreen(client);
            loginScreen.LoginCompleted += OnLoginCompleted;
            current = loginScreen;
        }
Exemplo n.º 2
0
 public LegacyClient(GameClientConfig config)
     : base(config, new LegacyAuthHandlerFactory(), new LegacyProtocolHandlerFactory())
 {
 }
Exemplo n.º 3
0
 public HafenClient(GameClientConfig config)
     : base(config, new HafenAuthHandlerFactory(), new HafenProtocolHandlerFactory())
 {
 }