Exemplo n.º 1
0
        public double supplyFNResourceFixedMax(double supply, double maxsupply, String resourcename)
        {
            supply    = Math.Max(supply, 0);
            maxsupply = Math.Max(maxsupply, 0);
            if (!getOvermanagerForResource(resourcename).hasManagerForVessel(vessel))
            {
                return(0);
            }

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

            return(manager.powerSupplyFixedMax(this, supply, maxsupply));
        }