/// <summary>
 /// Adds the device effect to this device.
 /// </summary>
 /// <param name="device">The device that is the source of the effect.</param>
 /// <param name="effect">The effect data.</param>
 public void AddDeviceEffect(EnergyDevice device, EnergyDeviceType.DeviceEffect effect)
 {
     deviceEffects.Add(new DeviceEffect
     {
         source = device,
         efficiencyMultiplier = effect.efficiencyMultiplier
     });
 }
        /// <summary>
        /// Adds the device effect to this slot and all attached devices.
        /// </summary>
        /// <param name="device">The device that is the source of the effect.</param>
        /// <param name="effect">The effect data.</param>
        public void AddDeviceEffect(EnergyDevice device, EnergyDeviceType.DeviceEffect effect)
        {
            deviceEffects.Add(new DeviceEffect
            {
                source = device,
                efficiencyMultiplier = effect.efficiencyMultiplier
            });

            for (int i = 0; i < attachedDevices.Count; ++i)
            {
                attachedDevices[i].AddDeviceEffect(device, effect);
            }
        }