Exemplo n.º 1
0
 public static void InitializeBGs()
 {
     BattlegroundMgr.BattlemasterListReader =
         new MappedDBCReader <BattlemasterList, BattlemasterConverter>(
             RealmServerConfiguration.GetDBCFile("BattlemasterList.dbc"));
     BattlegroundMgr.PVPDifficultyReader =
         new MappedDBCReader <PvPDifficultyEntry, PvPDifficultyConverter>(
             RealmServerConfiguration.GetDBCFile("PvpDifficulty.dbc"));
     ContentMgr.Load <BattlegroundTemplate>();
     BattlegroundMgr.DeserterSpell = SpellHandler.Get(BattlegroundMgr.DeserterSpellId);
     BattlegroundMgr.Loaded        = true;
     BattlegroundConfig.LoadSettings();
     BattlegroundMgr.EnsureBattlemasterRelations();
 }
Exemplo n.º 2
0
        //[Initialization(InitializationPass.Eighth, "Initialize Battlegrounds")]
        public static void InitializeBGs()
        {
            BattlemasterListReader = new MappedDBCReader <BattlemasterList, BattlemasterConverter>(RealmServerConfiguration.GetDBCFile(WCellConstants.DBC_BATTLEMASTERLIST));

            PVPDifficultyReader = new MappedDBCReader <PvPDifficultyEntry, PvPDifficultyConverter>(RealmServerConfiguration.GetDBCFile(WCellConstants.DBC_PVPDIFFICULTY));

            ContentMgr.Load <BattlegroundTemplate>();

            DeserterSpell = SpellHandler.Get(DeserterSpellId);

            Loaded = true;

            BattlegroundConfig.LoadSettings();

            EnsureBattlemasterRelations();
        }