Esempio n. 1
0
 public Rotor(RotorName name) :
     base(name.ToString(), Wiring.Current.Rotors[(int)name])
 {
     _rotorName            = name;
     _notchRingInitializer = Wiring.Current.Notches[(int)_notchRingName];
     InitNotches();
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public static string GetRotorName(this RotorName source)
 {
     return(source.ToString().Last().ToString());
 }