Exemple #1
0
        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);
        }
Exemple #2
0
        private void SetColorOffset(string themeID, TerrainColorOffset.OffsetName offsetName)
        {
            switch (offsetName)
            {
            case TerrainColorOffset.OffsetName.GrassPollutionColorOffset:
                GrassPollutionColorOffset = new TerrainColorOffset(themeID, offsetName);
                break;

            case TerrainColorOffset.OffsetName.GrassFieldColorOffset:
                GrassFieldColorOffset = new TerrainColorOffset(themeID, offsetName);
                break;

            case TerrainColorOffset.OffsetName.GrassFertilityColorOffset:
                GrassFertilityColorOffset = new TerrainColorOffset(themeID, offsetName);
                break;

            case TerrainColorOffset.OffsetName.GrassForestColorOffset:
                GrassForestColorOffset = new TerrainColorOffset(themeID, offsetName);
                break;
            }
        }