/// <summary>
        /// Whether this vessel meets the parameter condition.
        /// </summary>
        /// <param name="vessel">The vessel to check</param>
        /// <returns>Whether the vessel meets the condition</returns>
        protected override bool VesselMeetsCondition(Vessel vessel)
        {
            LoggingUtil.LogVerbose(this, "Checking VesselMeetsCondition: {0}", vessel.id);

            double delta = 0.0;

            if (RP1FixedResourceConsumptionChecker.CanCheckVessel(vessel))
            {
                delta = RP1FixedResourceConsumptionChecker.Instance.Consumption(resource);
            }
            else
            {
                return(false);
            }

            LoggingUtil.LogVerbose(this, "Delta for resource {0} is: {1}", resource.name, delta);
            return(delta - minRate >= -0.001 && maxRate - delta >= -0.001);
        }
 protected override void OnUnregister()
 {
     RP1FixedResourceConsumptionChecker.UnRegister();
     base.OnUnregister();
 }
 void Start()
 {
     Instance = this;
 }