public override void Update() { var tileAtmos = Owner.Transform.Coordinates.GetTileAtmosphere(_entityManager); if (tileAtmos == null) { return; } ScrubGas(tileAtmos.Air, _scrubberOutlet.Air); _atmosSystem.GetGridAtmosphere(Owner.Transform.GridID)?.Invalidate(tileAtmos.GridIndices); }
public override void Update() { var tileAtmos = AtmosHelpers.GetTileAtmosphere(Owner.Transform.GridPosition); if (tileAtmos == null) { return; } VentGas(_ventInlet.Air, tileAtmos.Air); _atmosSystem.GetGridAtmosphere(Owner.Transform.GridID).Invalidate(tileAtmos.GridIndices); }