public EnigmaSettings(EnigmaSettings enigmaSettings) { this.rotorSettings = new RotorSettings[enigmaSettings.rotorSettings.Length]; this.rotorSettings = enigmaSettings.rotorSettings; this.reflectorSettings = enigmaSettings.reflectorSettings; this.plugBoardSettings = enigmaSettings.plugBoardSettings; }
public EnigmaSettings(RotorSettings[] rotorSettings, RotorSettings reflectorSettings, PlugBoardSettings plugBoardSettings) { this.rotorSettings = new RotorSettings[rotorSettings.Length]; this.rotorSettings = rotorSettings; this.reflectorSettings = reflectorSettings; this.plugBoardSettings = plugBoardSettings; }