Esempio n. 1
0
        public double supplyManagedFNResourceWithMinimum(double supply, double rat_min, String resourcename)
        {
            supply  = Math.Max(supply, 0);
            rat_min = Math.Max(rat_min, 0);
            if (!getOvermanagerForResource(resourcename).hasManagerForVessel(vessel))
            {
                return(0);
            }

            ORSResourceManager manager = getOvermanagerForResource(resourcename).getManagerForVessel(vessel);

            return(manager.managedPowerSupplyWithMinimum(this, supply, rat_min));
        }