Пример #1
0
 public void UpdatePlayerResources(PlayerResourcesDetails resDetails)
 {     
     ResourcesDropdownData.UpdateResourceDetails(resDetails);
 }
        public void UpdateResourceDetails(PlayerResourcesDetails details)
        {
            AluminiumResource = "Aluminium: " + details.aluminiumResource;
            CopperResource = "Copper: " + details.copperResource;
            IronResource = "Iron: " + details.ironResource;
            LeadResource = "Lead: " + details.leadResource;
            MagnesiumResource = "Magnesium: " + details.magnesiumResource;
            TitaniumResource = "Titanium: " + details.titaniumResource;
            ZincResource = "Zinc: " + details.zincResource;
            SteelResource = "Steel: " + details.steelResource;
            BrassResource = "Brass: " + details.brassResource;

            SilverResource = "Sliver: " + details.sliverResource;
            GoldResource = "Gold: " + details.goldResource;
            PlatinumResource = "Platinum: " + details.platinumResource;
            DiamondResource = "Diamond: " + details.diamondResource;

            CoalResource = "Coal: " + details.coalResource;
            OilResource = "Oil: " + details.oilResource;
            NaturalGasResource = "Natural Gas: " + details.naturalGasResource;
            UraniumResource = "Uranium: " + details.uraniumResource;
            ThoriumResource = "Thorium: " + details.thoriumResource;
            PropaneResource = "Propane: " + details.propaneResource;
            BiomassResource = "Biomass: " + details.biomassResource;
            HydrogenResource = "Hydrogen: " + details.hydrogenResource;

            TimberResource = "Timber: " + details.timberResource;
            WaterResource = "Water: " + details.cleanWaterResource;
            FoodResource = "Food: " + details.foodResource;
            OxygenResource = "Oxygen: " + details.oxygenResource;
            PlasticResource = "Plastic: " + details.plasticResource;
            FabricResource = "Fabric: " + details.fabricResource;
            MedecineResource = "Medecine :" + details.medecineResource;

            AluminiumDeductions = details.aluminiumDeductions;
            CopperDeductions = details.copperDeductions;
            IronDeductions = details.ironDeductions;
            LeadDeductions = details.leadDeductions;
            MagnesiumDeductions = details.magnesiumDeductions;
            TitaniumDeductions = details.titaniumDeductions;         
            ZincDeductions = details.zincDeductions;
            SteelDeductions = details.steelDeductions;
            BrassDeductions = details.brassDeductions;

            SilverDeductions = details.silverDeductions;
            GoldDeductions = details.goldDeductions;
            PlatinumDeductions = details.platinumDeductions;
            DiamondDeductions = details.diamondDeductions;

            CoalDeductions = details.coalDeductions;
            OilDeductions = details.oilDeductions;
            NaturalGasDeductions = details.naturalGasDeductions;
            UraniumDeductions = details.uraniumDeductions;
            ThoriumDeductions = details.thoriumDeductions;
            PropaneDeductions = details.propaneDeductions;
            BiomassDeductions = details.biomassDeductions;
            HydrogenDeductions = details.hydrogenDeductions;

            TimberDeductions = details.timberDeductions;
            FoodDeductions = details.foodDeductions;
            WaterDeductions = details.cleanWaterDeductions;
            PlasticDeductions = details.plasticDeductions;
            OxygenDeductions = details.oxygenDeductions;
            FabricDeductions = details.fabricDeductions;
            MedecineDeductions = details.medecineDeductions;
        }