internal override SubRequirementState VesselMeetsCondition(Vessel vessel, EvaluationContext context) { ExperimentRunningState state = new ExperimentRunningState(); state.experimentState = ExperimentStateTracker.GetValue(vessel.id, experimentId); state.requirementMet = state.experimentState == ExperimentState.running; return(state); }
protected override bool VesselMeetsCondition(Vessel vessel) { if (!ExperimentStateTracker.HasValue(vessel.id, experimentId)) { return(false); } return(ExperimentStateTracker.GetValue(vessel.id, experimentId) == ExperimentState.running); }