public void OnTaskComplete(SettingsLevelName level) { switch (level) { case SettingsLevelName.Commands: OnStartOfCommands(); return; case SettingsLevelName.NavRot: OnTaskComplete_NavRot(); return; case SettingsLevelName.NavMove: OnTaskComplete_NavMove(); return; case SettingsLevelName.NavEngage: OnTaskComplete_NavEngage(); return; case SettingsLevelName.NavWay: OnTaskComplete_NavWay(); return; default: throw new Exception("Unhandled enum: " + level); } }
public SettingsLevel GetSettingsLevel(SettingsLevelName level) { switch (level) { case SettingsLevelName.Commands: return(Settings_Commands); case SettingsLevelName.NavRot: return(Settings_Task_NavRot); case SettingsLevelName.NavMove: return(Settings_Task_NavMove); case SettingsLevelName.NavEngage: return(Settings_Task_NavEngage); case SettingsLevelName.NavWay: return(Settings_Task_NavWay); default: throw new Exception("Unhandled enum: " + level); } }
public void OnTaskComplete(SettingsLevelName level) { switch (level) { case SettingsLevelName.Commands: OnStartOfCommands(); return; case SettingsLevelName.NavRot: OnTaskComplete_NavRot(); return; case SettingsLevelName.NavMove: OnTaskComplete_NavMove(); return; case SettingsLevelName.NavEngage: OnTaskComplete_NavEngage(); return; case SettingsLevelName.NavWay: OnTaskComplete_NavWay(); return; default: throw new Exception("Unhandled enum: " + level); } }
public SettingsLevel GetSettingsLevel(SettingsLevelName level) { switch (level) { case SettingsLevelName.Commands: return Settings_Commands; case SettingsLevelName.NavRot: return Settings_Task_NavRot; case SettingsLevelName.NavMove: return Settings_Task_NavMove; case SettingsLevelName.NavEngage: return Settings_Task_NavEngage; case SettingsLevelName.NavWay: return Settings_Task_NavWay; default: throw new Exception("Unhandled enum: " + level); } }