Esempio n. 1
0
        public double getResourceAvailability(String resourcename)
        {
            if (!getOvermanagerForResource(resourcename).hasManagerForVessel(vessel))
            {
                return(0);
            }

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

            return(manager.getResourceAvailability());
        }
Esempio n. 2
0
        public double getResourceAvailability(String resourcename)
        {
            ORSResourceManager manager = getManagerForVessel(resourcename);

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

            return(manager.getResourceAvailability());
        }
Esempio n. 3
0
        public double getResourceAvailability(String resourcename)
        {
            ORSResourceManager manager = getManagerForVessel(resourcename, vessel);

            if (manager == null)
            {
                UnityEngine.Debug.LogWarning("ORS - did not find manager for vessel");
                return(0);
            }

            return(manager.getResourceAvailability());
        }