public double getDemandStableSupply(String resourcename) { ResourceManager manager = getManagerForVessel(resourcename); if (manager == null) { return(0); } return(manager.getDemandStableSupply()); }
public double getDemandStableSupply(String resourcename) { if (String.IsNullOrEmpty(resourcename)) { Debug.LogError("[KSPI]: getDemandStableSupply resourcename is null or empty"); return(0); } ResourceManager manager = getManagerForVessel(resourcename); if (manager == null) { return(0); } return(manager.getDemandStableSupply()); }
public double getDemandStableSupply(String resourcename) { if (String.IsNullOrEmpty(resourcename)) { Debug.Log("[KSPI]: getDemandStableSupply illegal values."); return(0); } ResourceManager manager = getManagerForVessel(resourcename); if (manager == null) { return(0); } return((double)manager.getDemandStableSupply()); }