Last active
August 13, 2018 18:12
-
-
Save davwheat/7733cc9b67a222bebccf17230aeab161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SituationItem | |
{ | |
public string id; | |
public string displayName; | |
public bool? defaultVal; | |
private SituationItem(string id, string displayName, bool? defaultVal) | |
{ | |
this.id = id; | |
this.displayName = displayName; | |
this.defaultVal = defaultVal; | |
} | |
} | |
public class SituationCategory | |
{ | |
public string displayName; | |
public List<SituationItem> items; | |
private SituationCategory(string displayName, List<SituationItem> items) | |
{ | |
this.displayName = displayName; | |
this.items = items; | |
} | |
} | |
public class idekAtThisPoint | |
{ | |
public static readonly List<SituationCategory> allSituations = new List<SituationCategory>(); | |
private idekAtThisPoint() | |
{ | |
allSituations.Add(new SituationCategory("Generic Emergencies", new List<SituationItem> { | |
new SituationItem("system_eng_vibrations_above_maximum", "Engine vibrations outside of safe range", false), | |
})) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class Lists | |
{ | |
public static readonly List<Tuple<string, string>> crewSituations = new List<Tuple<string, string>> | |
{ | |
new Tuple<string, string> ( "First Officer incapacitated", "crew_fo_incapacitated" ), | |
new Tuple<string, string> ( "A member of the cabin crew feel unwell", "crew_cabin_sick" ), | |
new Tuple<string, string> ( "A member of the cabin crew has fainted", "crew_cabin_fainted" ), | |
}; | |
public static readonly List<Tuple<string, string>> emergencySituations = new List<Tuple<string, string>> | |
{ | |
new Tuple<string, string> ( "Lavatory fire", "emergency_fire_lavatory" ), | |
new Tuple<string, string> ( "Samsung Galaxy Note 7 is onboard", "emergency_fire_samsung_note_seven" ), | |
new Tuple<string, string> ( "Rapid decompression", "emergency_rapid_decompression" ), | |
}; | |
public static readonly List<Tuple<string, string>> passengerSituations = new List<Tuple<string, string>> | |
{ | |
new Tuple<string, string> ( "Pax feels unwell", "pax_unwell" ), | |
new Tuple<string, string> ( "Pax is suffering from an unknown medical emergency", "pax_medical_emergency" ), | |
new Tuple<string, string> ( "Pax is violent", "pax_violent" ), | |
new Tuple<string, string> ( "Pax is drunk", "pax_drunk" ), | |
new Tuple<string, string> ( "Pax is being abusive", "pax_abusive" ), | |
new Tuple<string, string> ( "Pax is attempting to enter the cockpit", "pax_hijack" ), | |
new Tuple<string, string> ( "Pax has died", "pax_dead" ), | |
new Tuple<string, string> ( "Pax is unconscious", "pax_unconscious" ), | |
new Tuple<string, string> ( "Pax has a weapon", "pax_armed_and_dangerous" ), | |
new Tuple<string, string> ( "Pax had a panic attack", "pax_panic_attack" ), | |
}; | |
public static readonly List<Tuple<string, string>> systemSituations = new List<Tuple<string, string>> | |
{ | |
new Tuple<string, string> ( "Engine vibrations outside of safe range", "system_eng_vibrations_above_maximum" ), | |
}; | |
} | |
public class Situations | |
{ | |
public static readonly List<Tuple<string, List<Tuple<string, string>>>> allSituations = new List<Tuple<string, List<Tuple<string, string>>>> | |
{ | |
new Tuple<string, List<Tuple<string, string>>> ( "Generic Emergencies", Lists.emergencySituations ), | |
new Tuple<string, List<Tuple<string, string>>> ( "Passenger", Lists.passengerSituations ), | |
new Tuple<string, List<Tuple<string, string>>> ( "Aircraft Warnings and Failures", Lists.systemSituations ), | |
new Tuple<string, List<Tuple<string, string>>> ( "Onboard Crew", Lists.crewSituations ), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment