(965c31410) v0.10.4.0

This commit is contained in:
Joonas Rikkonen
2020-07-30 13:00:09 +03:00
parent eeac247a8e
commit 4978af3d60
539 changed files with 45803 additions and 25359 deletions
@@ -17,6 +17,10 @@ namespace Barotrauma.Items.Components
/// List of all powered ItemComponents
/// </summary>
private static readonly List<Powered> poweredList = new List<Powered>();
public static IEnumerable<Powered> PoweredList
{
get { return poweredList; }
}
/// <summary>
/// Items that have already received the "probe signal" that's used to distribute power and load across the grid
@@ -306,6 +310,7 @@ namespace Barotrauma.Items.Components
protected override void RemoveComponentSpecific()
{
base.RemoveComponentSpecific();
poweredList.Remove(this);
}
}