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(); }
//[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(); }