Skip to main content

Crate openstranded_common_survival

Crate openstranded_common_survival 

Source
Expand description

§openstranded-common-survival

Shared data types for the OpenStranded survival system.

This crate defines the canonical structures that represent survival parameters — health system mode, exhaustion rates, diving, jumping, and other player-status mechanics.

§Types

TypePurpose
SurvivalParamsAll survival parameters bundled together
HealthSystemComplexity level of the health model
ExhaustParamsExhaustion rates grouped by action
ExhaustRateA single triple-rate (health, hunger, thirst)
DiveParamsUnderwater time and damage
JumpParamsJump cooldown and height multiplier

§Relationship to .inf files

The original game.inf contains a single flat entry with all game configuration. SurvivalParams::from_inf_fields extracts only the survival-relevant subset of those fields.

§Dependency

Only serde — this is a pure data crate with no engine or plugin API dependencies.

Structs§

DiveParams
Underwater / diving parameters.
ExhaustParams
Exhaustion rates for all player actions.
ExhaustRate
A triple rate affecting health, hunger, and thirst respectively.
JumpParams
Jump parameters.
SurvivalParams
All survival-related parameters extracted from game.inf.

Enums§

HealthSystem
Complexity level of the health/survival system.