Expand description
Player food/hunger system.
Manages food level, saturation, and exhaustion — the three values that control natural health regeneration and starvation damage.
Modules§
- food_
constants - All food-system constants bundled in one place.
Structs§
- Food
Data - Tracks a player’s hunger, saturation, and exhaustion state.
One instance is stored per player behind a
SyncMutex.
Enums§
- Food
Tick Result - Describes what the hunger tick determined should happen this tick
Functions§
- saturation_
by_ modifier - Computes the absolute saturation value from a nutrition count and a modifier.