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

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

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

            ResourceManager manager = getManagerForVessel(resourcename);

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

            return(manager.getSpareResourceCapacity());
        }
Пример #3
0
        public double getSpareResourceCapacity(String resourcename)
        {
            if (String.IsNullOrEmpty(resourcename))
            {
                Debug.Log("[KSPI] - getSpareResourceCapacity illegal values.");
                return(0);
            }

            ResourceManager manager = getManagerForVessel(resourcename);

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

            return(manager.getSpareResourceCapacity());
        }