public double GetRequiredResourceDemand(String resourcename)
        {
            ResourceManager manager = getManagerForVessel(resourcename);

            if (manager == null)
            {
                return(0);
            }

            return(manager.GetRequiredResourceDemand());
        }
        public double GetRequiredResourceDemand(String resourcename)
        {
            if (String.IsNullOrEmpty(resourcename))
            {
                Debug.LogError("[KSPI]: GetRequiredResourceDemand resourcename is null or empty");
                return(0);
            }

            ResourceManager manager = getManagerForVessel(resourcename);

            if (manager == null)
            {
                return(0);
            }

            return(manager.GetRequiredResourceDemand());
        }
        public double GetRequiredResourceDemand(String resourcename)
        {
            if (String.IsNullOrEmpty(resourcename))
            {
                Debug.Log("[KSPI]: GetRequiredResourceDemand illegal values.");
                return(0);
            }

            ResourceManager manager = getManagerForVessel(resourcename);

            if (manager == null)
            {
                return(0);
            }

            return((double)manager.GetRequiredResourceDemand());
        }