Ejemplo n.º 1
0
        protected EzWorldServer(SettingsContainer settingsContainer, WorldServerSettings settings) : base(settings)
        {
            Settings = settings;

            _bridgeSettings  = settingsContainer.GetBridgeSettings(Settings);
            LoginServerPoint = settingsContainer.GetLoginServerPoint();

            _rubyChannels  = new Channel[MaxChannels];
            _streeChannels = new Channel[MaxChannels];
            _clubChannels  = new Channel[MaxChannels];

            for (int i = 0; i < MaxChannels; i++)
            {
                _rubyChannels[i]  = new Channel(i);
                _streeChannels[i] = new Channel(i);
                _clubChannels[i]  = new Channel(i);
            }

            Bridge = new TcpBridge(_bridgeSettings);
        }