예제 #1
0
 public EnigmaSettings(EnigmaSettings enigmaSettings)
 {
     this.rotorSettings     = new RotorSettings[enigmaSettings.rotorSettings.Length];
     this.rotorSettings     = enigmaSettings.rotorSettings;
     this.reflectorSettings = enigmaSettings.reflectorSettings;
     this.plugBoardSettings = enigmaSettings.plugBoardSettings;
 }
예제 #2
0
 public EnigmaSettings(RotorSettings[] rotorSettings, RotorSettings reflectorSettings, PlugBoardSettings plugBoardSettings)
 {
     this.rotorSettings     = new RotorSettings[rotorSettings.Length];
     this.rotorSettings     = rotorSettings;
     this.reflectorSettings = reflectorSettings;
     this.plugBoardSettings = plugBoardSettings;
 }