private void PowerAllDevices() { foreach (var device in DepoweredDevices) { device.Powered = true; } DepoweredDevices.Clear(); }
/// <summary> /// Kills a powernet after it is marked dirty and its component have already been regenerated by the powernet system /// </summary> public void DirtyKill() { Wirelist.Clear(); while (Nodelist.Count != 0) { Nodelist[0].DisconnectFromPowernet(); } Generatorlist.Clear(); Deviceloadlist.Clear(); DepoweredDevices.Clear(); PowerStorageSupplierlist.Clear(); PowerStorageConsumerlist.Clear(); RemoveFromSystem(); }