Esempio n. 1
0
        /// <summary>
        /// Initializes the slot.
        /// </summary>
        public static void Initialize()
        {
            if (Battles.Initialized)
            {
                return;
            }

            Battles.Entities = new ConcurrentDictionary <long, BattleLog>();
            Battles.HighSeed = Config.ServerId;
            Battles.LowSeed  = GameDb.GetBattlesSeed();

            /* for (int i = 1; i <= this.LowSeed; i++)
             * {
             *  BattleLog BattleLog = await this.Get(Constants.ServerID, i);
             *  this.RemainingSecs -= Resources.Database.TimeToLoadSave;
             *
             *  if (BattleLog != null)
             *  {
             *      int ChannelIdx = Resources.ServerManager.RoyalTvManager.GetChannelArenaData(BattleLog.ArenaData);
             *
             *      if (ChannelIdx != -1)
             *      {
             *          Resources.ServerManager.RoyalTvManager.AddEntry(ChannelIdx, new RoyalTvEntry(BattleLog));
             *      }
             *      else
             *      {
             *          Logging.Error(this.GetType(), "ChannelIdx == -1 at StartLoading().");
             *      }
             *  }
             * } */
            Battles.Initialized = true;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes the slot.
        /// </summary>
        public static void Initialize()
        {
            if (Players.Initialized)
            {
                return;
            }

            Players.Entities = new ConcurrentDictionary <long, Player>();
            Players.HighSeed = Config.ServerId;
            Players.LowSeed  = GameDb.GetPlayersSeed();

            Players.Initialized = true;
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes the slot.
        /// </summary>
        public static void Initialize()
        {
            if (Clans.Initialized)
            {
                return;
            }

            Clans.Entities = new ConcurrentDictionary <long, Clan>();
            Clans.HighSeed = Config.ServerId;
            Clans.LowSeed  = GameDb.GetClansSeed();

            Clans.Initialized = true;
        }