Example #1
0
        public WvsCenter(int channels)
        {
            WzMan = new WzManager();
            WzMan.LoadFile("Map.wz");

            Db       = new MongoDb();
            LoggedIn = new List <PendingLogin>();

            m_login = new WvsLogin(this);
            m_games = new WvsGame[channels];

            for (int i = 0; i < m_games.Length; i++)
            {
                var channel = (byte)i;
                m_games[i] = new WvsGame(this, channel);
            }
        }
Example #2
0
        public WvsCenter(int channels)
        {
            config = new ConfigurationBuilder()
                     .AddJsonFile("Global.json", optional: true, reloadOnChange: true)
                     .Build();

            WZReader.InitializeKeys();

            WzProvider = new PackageCollection(Constants.WzLocation);

            Db       = new MongoDb();
            LoggedIn = new List <PendingLogin>();

            m_login = new WvsLogin(this);
            m_games = new WvsGame[channels];

            for (int i = 0; i < m_games.Length; i++)
            {
                var channel = (byte)i;
                m_games[i] = new WvsGame(this, channel);
            }
        }