private SceneService() { var fileReader = new MpqFileReader(); // var fileReader = new MpqFileReader(WoWInstallation.AssumeAt("Z:\\World of Warcraft")); Files = new FilePool(fileReader); _liquidTypeDatabase = InitializeDatabase(fileReader); _builder = new AdtGeometryBuilder(Files, MapLiquidType); }
public SpellInformation(KeyedClientDatabase<int, SpellRecord> spellDatabase) { if (spellDatabase == null) throw new ArgumentNullException("spellDatabase"); characterInformation = new CharacterInformation(); this.spellDatabase = spellDatabase; spellId = -1; }
private void LoadDatabases() { mapDatabase = LoadDatabase <MapRecord>(@"DBFilesClient\Map.dbc"); worldMapContinentDatabase = LoadDatabase <WorldMapContinentRecord>(@"DBFilesClient\WorldMapContinent.dbc"); worldMapAreaDatabase = LoadDatabase <WorldMapAreaRecord>(@"DBFilesClient\WorldMapArea.dbc"); areaTableDatabase = LoadDatabase <AreaTableRecord>(@"DBFilesClient\AreaTable.dbc"); worldMapOverlayDatabase = LoadDatabase <WorldMapOverlayRecord>(@"DBFilesClient\WorldMapOverlay.dbc"); dungeonMapDatabase = LoadDatabase <DungeonMapRecord>(@"DBFilesClient\DungeonMap.dbc"); }
public SpellInformation(KeyedClientDatabase <int, SpellRecord> spellDatabase) { if (spellDatabase == null) { throw new ArgumentNullException("spellDatabase"); } characterInformation = new CharacterInformation(); this.spellDatabase = spellDatabase; spellId = -1; }
public MainForm(WoWInstallation wowInstallation, WoWLanguagePack languagePack) { InitializeComponent(); this.wowInstallation = wowInstallation; this.languagePack = languagePack; this.wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false); spellDatabase = LoadDatabase <SpellRecord>(@"DBFilesClient\Spell.dbc"); spellIconDatabase = LoadDatabase <SpellIconRecord>(@"DBFilesClient\SpellIcon.dbc"); countToolStripLabel.Text = string.Format(CultureInfo.CurrentUICulture, Properties.Resources.SpellCountFormatString, spellDatabase.Records.Count); spellInformation = new SpellInformation(spellDatabase); UpdateDisplayInfo(); }