Reorganized project to start work on dedicated server

This commit is contained in:
juanjp600
2017-06-11 03:48:08 -03:00
parent 9b0d7c1020
commit 5636d1cdf9
702 changed files with 453 additions and 247 deletions
@@ -0,0 +1,21 @@
using System.Xml.Linq;
namespace Barotrauma.Items.Components
{
class OxygenDetector : ItemComponent
{
public OxygenDetector(Item item, XElement element)
: base (item, element)
{
IsActive = true;
}
public override void Update(float deltaTime, Camera cam)
{
if (item.CurrentHull == null) return;
item.SendSignal(0, ((int)item.CurrentHull.OxygenPercentage).ToString(), "signal_out", null);
}
}
}