public Rotor(RotorName name) : base(name.ToString(), Wiring.Current.Rotors[(int)name]) { _rotorName = name; _notchRingInitializer = Wiring.Current.Notches[(int)_notchRingName]; InitNotches(); }
public Rotor(RotorName name, params int[] notches) : base(name.ToString(), Constants.Rotors[(int)name]) { RotorName = name; foreach (int i in notches) { _contacts[i].Notch = true; } }
public static string GetRotorName(this RotorName source) { return(source.ToString().Last().ToString()); }