public ElectricityConsumerData(ElectricityConsumer component) : base(component)
        {
            MinPower     = component.MinPower;
            OptimalPower = component.OptimalPower;
            MaxPower     = component.MaxPower;

            Priority             = component.Priority;
            TargetConsumingPower = component.TargetConsumingPower;
        }
 private void OnTargetConsumingPowerChanged(ElectricityConsumer sender, Int64 newValue)
 {
     Assert.IsTrue(sender == ConsumerComponent);
     UpdateOutputPower(Equipment.Enabled);
 }
Beispiel #3
0
 private void OnEquipmentPriorityChanged(ElectricityConsumer sender, Int16 priority)
 {
     EquipmentNetwork.RemoveEquipment(sender.OwnerEquipment);
     EquipmentNetwork.InsertEquipment(sender.OwnerEquipment);
 }