Esempio n. 1
0
 private void Initialize()
 {
     UpwardRoadDiffuse        = new StructureTexture(StructureTexture.TextureName.UpwardRoadDiffuse);
     DownwardRoadDiffuse      = new StructureTexture(StructureTexture.TextureName.DownwardRoadDiffuse);
     BuildingFloorDiffuse     = new StructureTexture(StructureTexture.TextureName.BuildingFloorDiffuse);
     BuildingBaseDiffuse      = new StructureTexture(StructureTexture.TextureName.BuildingBaseDiffuse);
     BuildingBaseNormal       = new StructureTexture(StructureTexture.TextureName.BuildingBaseNormal);
     BuildingBurntDiffuse     = new StructureTexture(StructureTexture.TextureName.BuildingBurntDiffuse);
     BuildingAbandonedDiffuse = new StructureTexture(StructureTexture.TextureName.BuildingAbandonedDiffuse);
     LightColorPalette        = new StructureTexture(StructureTexture.TextureName.LightColorPalette);
 }
Esempio n. 2
0
        private void SetTexture(string themeID, StructureTexture.TextureName textureName)
        {
            switch (textureName)
            {
            case StructureTexture.TextureName.UpwardRoadDiffuse:
                UpwardRoadDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.DownwardRoadDiffuse:
                DownwardRoadDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.BuildingFloorDiffuse:
                BuildingFloorDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.BuildingBaseDiffuse:
                BuildingBaseDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.BuildingBaseNormal:
                BuildingBaseNormal = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.BuildingBurntDiffuse:
                BuildingBurntDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.BuildingAbandonedDiffuse:
                BuildingAbandonedDiffuse = new StructureTexture(textureName, themeID);
                break;

            case StructureTexture.TextureName.LightColorPalette:
                LightColorPalette = new StructureTexture(textureName, themeID);
                break;
            }
        }