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
| Type | Purpose |
|---|---|
SurvivalParams | All survival parameters bundled together |
HealthSystem | Complexity level of the health model |
ExhaustParams | Exhaustion rates grouped by action |
ExhaustRate | A single triple-rate (health, hunger, thirst) |
DiveParams | Underwater time and damage |
JumpParams | Jump 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§
- Dive
Params - Underwater / diving parameters.
- Exhaust
Params - Exhaustion rates for all player actions.
- Exhaust
Rate - A triple rate affecting health, hunger, and thirst respectively.
- Jump
Params - Jump parameters.
- Survival
Params - All survival-related parameters extracted from
game.inf.
Enums§
- Health
System - Complexity level of the health/survival system.