Exemplo n.º 1
0
 static Parameter()
 {
     Base        = new BaseParams();
     Building    = new BuildingParams();
     Trip        = new TripParams();
     Green       = new GreenParams();
     Maintenance = new MaintenanceParams();
 }
Exemplo n.º 2
0
        private static double GetPrepareConstructionProduction(BuildingType buildingType, BuildingParams buildingParams)
        {
            switch (buildingType)
            {
            case BuildingType.GreenField:
                return(0);

            case BuildingType.Other:
                return(buildingParams.PublicBuildingMaterial);

            case BuildingType.Mixed:
                return(0);

            case BuildingType.Unknown:
                return(0);

            case BuildingType.MidHighResidencial:
            case BuildingType.HighResidencial:
                return(buildingParams.ResidentialBuildingMaterial);

            default:
                return(buildingParams.PublicBuildingMaterial);
            }
        }