public ParachuteInput(ParachuteLine selectedLine, Vector2 brakes, Vector2 rearRisers, Vector2 frontRisers, Vector2 weightShift, bool isMouseInput) { SelectedLine = selectedLine; Brakes = brakes; RearRisers = rearRisers; FrontRisers = frontRisers; WeightShift = weightShift; IsMouseInput = isMouseInput; }
public static Color Color(this ParachuteLine line) { switch (line) { case ParachuteLine.Brake: return(ColorUtil.FromRgb(124, 174, 255)); // Blue case ParachuteLine.Rear: return(ColorUtil.FromRgb(221, 70, 86)); // Red case ParachuteLine.Front: return(ColorUtil.FromRgb(67, 195, 121)); // Green default: throw new ArgumentOutOfRangeException("line", line, null); } }
public static string Name(this ParachuteLine line) { switch (line) { case ParachuteLine.Brake: return("Brake Lines"); case ParachuteLine.Front: return("Front Lines"); case ParachuteLine.Rear: return("Rear Lines"); default: return("None"); } }