コード例 #1
0
        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);
        }
コード例 #2
0
        protected override bool VesselMeetsCondition(Vessel vessel)
        {
            if (!ExperimentStateTracker.HasValue(vessel.id, experimentId))
            {
                return(false);
            }

            return(ExperimentStateTracker.GetValue(vessel.id, experimentId) == ExperimentState.running);
        }