public ElectricityProducerData(ElectricityProducer component) : base(component) { MinPower = component.MinPower; OptimalPower = component.OptimalPower; MaxPower = component.MaxPower; TargetProducingPower = component.ProducingPower; }
private void OnTargetProducingPowerChanged(ElectricityProducer sender, Int64 newValue) { Assert.IsTrue(sender == ProducerComponent); UpdateOutputPower(); }