Example #1
0
        private void SetTexture(string themeID, TerrainTexture.TextureName textureName)
        {
            switch (textureName)
            {
            case TerrainTexture.TextureName.GrassDiffuseTexture:
                GrassDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.RuinedDiffuseTexture:
                RuinedDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.PavementDiffuseTexture:
                PavementDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.GravelDiffuseTexture:
                GravelDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.CliffDiffuseTexture:
                CliffDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.OilDiffuseTexture:
                OilDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.OreDiffuseTexture:
                OreDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.SandDiffuseTexture:
                SandDiffuseTexture = new TerrainTexture(textureName, themeID);
                break;

            case TerrainTexture.TextureName.CliffSandNormalTexture:
                CliffSandNormalTexture = new TerrainTexture(textureName, themeID);
                break;
            }
        }
Example #2
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);
        }