コード例 #1
0
ファイル: RotorInfo.cs プロジェクト: antonbubel/Enigma
 public RotorInfo(RotorVariation type, char startingOffset = 'A', char ringSettingOffset = 'A')
 {
     Type = type;
     RingSettingOffset = ringSettingOffset;
     StartingOffset    = startingOffset;
 }
コード例 #2
0
 public static Rotor Create(RotorVariation type, char offset = 'A')
 {
     return(new Rotor(Settings.Default.Rotors[type], offset));
 }