private void SetDetail(string themeID, TerrainDetail.Name detailName) { switch (detailName) { case TerrainDetail.Name.GrassDetailEnabled: GrassDetailEnabled = new TerrainDetail(themeID, detailName); break; case TerrainDetail.Name.FertileDetailEnabled: FertileDetailEnabled = new TerrainDetail(themeID, detailName); break; case TerrainDetail.Name.RocksDetailEnabled: RocksDetailEnabled = new TerrainDetail(themeID, detailName); break; } }
private void Initialize() { GrassDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.GrassDiffuseTexture); RuinedDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.RuinedDiffuseTexture); PavementDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.PavementDiffuseTexture); GravelDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.GravelDiffuseTexture); CliffDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.CliffDiffuseTexture); SandDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.SandDiffuseTexture); OilDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.OilDiffuseTexture); OreDiffuseTexture = new TerrainTexture(TerrainTexture.TextureName.OreDiffuseTexture); CliffSandNormalTexture = new TerrainTexture(TerrainTexture.TextureName.CliffSandNormalTexture); GrassPollutionColorOffset = new TerrainColorOffset(TerrainColorOffset.OffsetName.GrassPollutionColorOffset); GrassFieldColorOffset = new TerrainColorOffset(TerrainColorOffset.OffsetName.GrassFieldColorOffset); GrassFertilityColorOffset = new TerrainColorOffset(TerrainColorOffset.OffsetName.GrassFertilityColorOffset); GrassForestColorOffset = new TerrainColorOffset(TerrainColorOffset.OffsetName.GrassForestColorOffset); GrassDetailEnabled = new TerrainDetail(TerrainDetail.Name.GrassDetailEnabled); FertileDetailEnabled = new TerrainDetail(TerrainDetail.Name.FertileDetailEnabled); RocksDetailEnabled = new TerrainDetail(TerrainDetail.Name.RocksDetailEnabled); }