public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "tagconnected") { TryTagConnected(); } if (command.Argument(0) == "cleartags") { ClearTags(); } }
public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "toggle") { ToggleActive(command.Argument(1)); } if (command.Argument(0) == "togglemanual") { ToggleManual(command.Argument(1)); } }
public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "reload") { Reload(); } if (command.Argument(0) == "unload") { Unload(); } if (command.Argument(0) == "toggleauto") { AutoReload = !AutoReload; } }
public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "toggle") { active = !active; } }
public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "Launch") { Launch(); } }
public void CommandV2(TimeSpan timestamp, CommandLine command) { if (command.Argument(0) == "toggle_manual") { Drive.SwitchToMode(Drive.mode == "manual" ? "flight" : "manual"); } else if (command.Argument(0) == "toggle_landing") { Drive.SwitchToMode(Drive.mode == "landing" ? "flight" : "landing"); } else if (command.Argument(0) == "toggle_shutdown") { Drive.SwitchToMode(Drive.mode == "shutdown" ? "flight" : "shutdown"); } else if (command.Argument(0) == "toggle_standby") { Drive.SwitchToMode(Drive.mode == "standby" ? "flight" : "standby"); } else if (command.Argument(0) == "toggle_precision") { enablePrecisionAim = !enablePrecisionAim; } else if (command.Argument(0) == "toggle_lateral_dampening") { Drive.enableLateralOverride = !Drive.enableLateralOverride; } else if (command.Argument(0) == "toggle_lateral_override") { Drive.enableLateralOverride = !Drive.enableLateralOverride; } }
public void CommandV2(CommandLine command) { if (command.Subsystem == "manager") { if (command.Argument(0) == "reset") { Reset(); } if (command.Argument(0) == "activate") { myName = command.Argument(1); Activating = true; } if (command.Argument(0) == "broadcast") { Context.IGC.SendBroadcastMessage(GeneralChannel, command.JoinArguments(Context.SharedStringBuilder, 1, command.ArgumentCount - 1)); } } else if (command.Subsystem != null) { ISubsystem subsystem; if (Subsystems.TryGetValue(command.Subsystem, out subsystem)) { subsystem.Command(Context.LocalTime, command.Argument(0), command.Argument(1)); subsystem.CommandV2(Context.LocalTime, command); } } }