public readonly struct PlayerVitalsContains a read-only snapshot of a player's survival gauges.
Members
OxygenGets the current oxygen value.propertyWaterGets the current water value used by the game's thirst gauge.propertyHealthGets the current health value.propertyToxicityGets the current toxicity value.propertyIsDyingGets whether oxygen, water, or health has reached the game's dying threshold.propertyPlayerVitalsCreates a survival-gauge snapshot.methodOxygen
propertypublic float OxygenGets the current oxygen value.
Water
propertypublic float WaterGets the current water value used by the game's thirst gauge.
Health
propertypublic float HealthGets the current health value.
Toxicity
propertypublic float ToxicityGets the current toxicity value.
IsDying
propertypublic bool IsDyingGets whether oxygen, water, or health has reached the game's dying threshold.
PlayerVitals
methodpublic PlayerVitals( float oxygen, float water, float health, float toxicity, bool isDying)Creates a survival-gauge snapshot.