Example #1
0
        public GameServer(int listenPort, string dbConnectionString, string globalAddress, int globalPort)
            : base(listenPort, dbConnectionString)
        {
            // Start the global server manager
            _gs = new GlobalServerManager(globalAddress, globalPort);
            _gs.OnAccountInfoResponse += new EventHandler<AccountInfoResponseArgs>(_gs_OnAccountInfoResponse);

            ListenThread.OnConnectionAccepted += new EventHandler<SocketArg>(lt_OnConnectionAccepted);
        }
Example #2
0
        public GameServer(int listenPort, string dbConnectionString, string globalAddress, int globalPort)
            : base(listenPort, dbConnectionString)
        {
            _authManager = new AuthStringManager();

            // Start the global server manager
            _gs = new GlobalServerManager(globalAddress, globalPort);
            _gs.OnAccountInfoResponse += _gs_OnAccountInfoResponse;
            _gs.OnCurrencyUpdate      += _gs_OnCurrencyUpdate;
            _gs.OnGlobalProductInfo   += _gs_OnGlobalProductInfo;
            _gs.Start();

            ListenThread.OnConnectionAccepted += new EventHandler <SocketArg>(lt_OnConnectionAccepted);
        }