Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public SpellInformation(KeyedClientDatabase<int, SpellRecord> spellDatabase)
 {
     if (spellDatabase == null)
         throw new ArgumentNullException("spellDatabase");
     characterInformation = new CharacterInformation();
     this.spellDatabase = spellDatabase;
     spellId = -1;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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");
 }
Ejemplo n.º 5
0
 public SpellInformation(KeyedClientDatabase <int, SpellRecord> spellDatabase)
 {
     if (spellDatabase == null)
     {
         throw new ArgumentNullException("spellDatabase");
     }
     characterInformation = new CharacterInformation();
     this.spellDatabase   = spellDatabase;
     spellId = -1;
 }
Ejemplo n.º 6
0
 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();
 }