Controllers don't have to be wired directly to an item for camera focus to work (= railguns and cameras can be used over wifi). Closes #535

This commit is contained in:
Joonas Rikkonen
2018-07-31 15:03:20 +03:00
parent d81ee1a27e
commit 82103cf394
5 changed files with 42 additions and 21 deletions
@@ -268,7 +268,16 @@ namespace Barotrauma
return IsInWater();
}
}
/// <summary>
/// A list of items the last signal sent by this item went through
/// </summary>
public List<Item> LastSentSignalRecipients
{
get;
private set;
} = new List<Item>();
public ItemPrefab Prefab
{
get { return prefab; }
@@ -1011,9 +1020,10 @@ namespace Barotrauma
}
}
}
public void SendSignal(int stepsTaken, string signal, string connectionName, Character sender, float power = 0.0f)
{
LastSentSignalRecipients.Clear();
if (connections == null) return;
stepsTaken++;