Пример #1
0
        public void Copy(ScriptedPassengerCarPowerSupply other)
        {
            BatterySwitch.Copy(other.BatterySwitch);

            ScriptName = other.ScriptName;

            PowerOnDelayS         = other.PowerOnDelayS;
            ContinuousPowerW      = other.ContinuousPowerW;
            HeatingPowerW         = other.HeatingPowerW;
            AirConditioningPowerW = other.AirConditioningPowerW;
            AirConditioningYield  = other.AirConditioningYield;
        }
Пример #2
0
        public virtual void Copy(IPowerSupply other)
        {
            if (other is ScriptedLocomotivePowerSupply scriptedOther)
            {
                BatterySwitch.Copy(scriptedOther.BatterySwitch);
                MasterKey.Copy(scriptedOther.MasterKey);
                ElectricTrainSupplySwitch.Copy(scriptedOther.ElectricTrainSupplySwitch);

                ScriptName = scriptedOther.ScriptName;

                PowerOnDelayS    = scriptedOther.PowerOnDelayS;
                AuxPowerOnDelayS = scriptedOther.AuxPowerOnDelayS;
            }
        }