Assembly: VRage.Game.dll

public interface IMyOxygenRoom

Represents space containing air vent. May be not airtight

Properties

Member Description
BlockCount Gets blocks in room. Can be used to calculate max oxygen available for this room: BlockCount * gridSize * gridSize * gridSize
Blocks HashSet of all the airtight positions in the room (Reference, not a copy!)
EnvironmentOxygen Gets current oxygen level
IsAirtight Gets if room is airtight
IsDirty Gets if room state is dirty, and would be updated soon.
OxygenAmount Gets oxygen amount in cubic meters. BlockCount * gridSize * gridSize * gridSize
StartingPosition Gets oxygen room starting position

Methods

Member Description
MaxOxygen(float) Gets the maximum volume of oxygen in the room (m^3)
MissingOxygen(float) Returns the volume of oxygen that is not in the room (m^3)
OxygenLevel(float) Returns the percentage of oxygen in the room compared to the maximum possible oxygen