Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ScenarioState.cs
Go to the documentation of this file.
1namespace PixoVR.Event
2{
3 public class ScenarioState
4 {
5 public Scenario CurrentScenario { get; set; }
6
7 public bool IsEvaluation =>
8 CurrentScenario == Scenario.EVALUATIONMODE || CurrentScenario == Scenario.EVALUATIONMODE_AUTOMATIC ||
9 CurrentScenario == Scenario.EVALUATIONMODE_MANUAL ||
10 CurrentScenario == Scenario.EVALUATIONMODE_MANUAL_WHEEL_LOCK ||
11 CurrentScenario == Scenario.EVALUATIONMODE_AUTOMATIC_WHEEL_LOCK;
12
13 public bool IsPracticeMode =>
14 CurrentScenario == Scenario.PRACTICEMODE || CurrentScenario == Scenario.PRACTICEMODE_AUTOMATIC ||
15 CurrentScenario == Scenario.PRACTICEMODE_MANUAL ||
16 CurrentScenario == Scenario.PRACTICEMODE_MANUAL_WHEEL_LOCK
17 || CurrentScenario == Scenario.PRACTICEMODE_AUTOMATIC_WHEEL_LOCK;
18
19 public bool IsControlTestMode =>
20 CurrentScenario == Scenario.CONTROLTEST ||
21 CurrentScenario == Scenario.CONTROLTEST_MANUAL ||
22 CurrentScenario == Scenario.CONTROLTEST_AUTOMATIC;
23
24 public bool IsAutomatic =>
25 CurrentScenario == Scenario.PRACTICEMODE_AUTOMATIC ||
26 CurrentScenario == Scenario.PRACTICEMODE_AUTOMATIC_WHEEL_LOCK ||
27 CurrentScenario == Scenario.EVALUATIONMODE_AUTOMATIC ||
28 CurrentScenario == Scenario.EVALUATIONMODE_AUTOMATIC_WHEEL_LOCK ||
29 CurrentScenario == Scenario.CONTROLTEST_AUTOMATIC;
30
31 public bool IsManual =>
32 CurrentScenario == Scenario.PRACTICEMODE_MANUAL ||
33 CurrentScenario == Scenario.PRACTICEMODE_MANUAL_WHEEL_LOCK ||
34 CurrentScenario == Scenario.EVALUATIONMODE_MANUAL ||
35 CurrentScenario == Scenario.EVALUATIONMODE_MANUAL_WHEEL_LOCK ||
36 CurrentScenario == Scenario.CONTROLTEST_MANUAL;
37
38 public bool IsOptional =>
39 CurrentScenario == Scenario.EVALUATIONMODE_MANUAL_WHEEL_LOCK ||
40 CurrentScenario == Scenario.EVALUATIONMODE_AUTOMATIC_WHEEL_LOCK ||
41 CurrentScenario == Scenario.PRACTICEMODE_MANUAL_WHEEL_LOCK ||
42 CurrentScenario == Scenario.PRACTICEMODE_AUTOMATIC_WHEEL_LOCK;
43 }
44}