pub enum HealthSystem {
None = 0,
Simple = 1,
Basic = 2,
Advanced = 3,
Full = 4,
}Expand description
Complexity level of the health/survival system.
Mapped from the healthsystem= field in game.inf.
Variants§
None = 0
No health system — player cannot die.
Simple = 1
Simple health only.
Basic = 2
Health + hunger.
Advanced = 3
Health + hunger + thirst.
Full = 4
Health + hunger + thirst + exhaustion.
Implementations§
Trait Implementations§
Source§impl Clone for HealthSystem
impl Clone for HealthSystem
impl Copy for HealthSystem
Source§impl Debug for HealthSystem
impl Debug for HealthSystem
Source§impl Default for HealthSystem
impl Default for HealthSystem
Source§impl<'de> Deserialize<'de> for HealthSystem
impl<'de> Deserialize<'de> for HealthSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HealthSystem
Source§impl PartialEq for HealthSystem
impl PartialEq for HealthSystem
Source§impl Serialize for HealthSystem
impl Serialize for HealthSystem
impl StructuralPartialEq for HealthSystem
Auto Trait Implementations§
impl Forget for HealthSystem
impl Freeze for HealthSystem
impl Move for HealthSystem
impl RefUnwindSafe for HealthSystem
impl Send for HealthSystem
impl Sync for HealthSystem
impl Unpin for HealthSystem
impl UnsafeUnpin for HealthSystem
impl UnwindSafe for HealthSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more