Inheritance: IFileReader
示例#1
0
 private KeyedClientDatabase <int, LiquidTypeRecord> InitializeDatabase(MpqFileReader fileReader)
 {
     using (var stream = fileReader.Open("DBFilesClient\\LiquidType.dbc"))
     {
         return(new KeyedClientDatabase <int, LiquidTypeRecord>(stream));
     }
 }
示例#2
0
 private KeyedClientDatabase<int, LiquidTypeRecord> InitializeDatabase(MpqFileReader fileReader)
 {
     using (var stream = fileReader.Open("DBFilesClient\\LiquidType.dbc"))
     {
         return new KeyedClientDatabase<int, LiquidTypeRecord>(stream);
     }
 }
示例#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);
 }
示例#4
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);
        }