Client LuaCsForBarotrauma
DivideComponent.cs
1 using System.Xml.Linq;
2 
4 {
6  {
8  : base(item, element)
9  {
10  }
11 
12  protected override float Calculate(float signal1, float signal2)
13  {
14  if (MathUtils.NearlyEqual(signal2, 0)) { return float.NaN; }
15  return signal1 / signal2;
16  }
17  }
18 }
override float Calculate(float signal1, float signal2)
DivideComponent(Item item, ContentXElement element)