private KeyedClientDatabase <int, LiquidTypeRecord> InitializeDatabase(MpqFileReader fileReader) { using (var stream = fileReader.Open("DBFilesClient\\LiquidType.dbc")) { return(new KeyedClientDatabase <int, LiquidTypeRecord>(stream)); } }
private KeyedClientDatabase<int, LiquidTypeRecord> InitializeDatabase(MpqFileReader fileReader) { using (var stream = fileReader.Open("DBFilesClient\\LiquidType.dbc")) { return new KeyedClientDatabase<int, LiquidTypeRecord>(stream); } }
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); }