pub enum EncounterMode {
Walking,
Surfing,
Fishing {
rod_power: u8,
},
}Expand description
How the player is currently traversing the world when a step completes.
The provider decides what each mode means (which table to roll, fishing rod power, etc.); the engine just passes it through.
Variants§
Walking
Walking on land (tall grass / cave floor).
Surfing
Surfing on water.
Fishing
Fishing with a rod of the given power tier.
Trait Implementations§
Source§impl Clone for EncounterMode
impl Clone for EncounterMode
Source§fn clone(&self) -> EncounterMode
fn clone(&self) -> EncounterMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncounterMode
Source§impl Debug for EncounterMode
impl Debug for EncounterMode
impl Eq for EncounterMode
Source§impl PartialEq for EncounterMode
impl PartialEq for EncounterMode
impl StructuralPartialEq for EncounterMode
Auto Trait Implementations§
impl Freeze for EncounterMode
impl RefUnwindSafe for EncounterMode
impl Send for EncounterMode
impl Sync for EncounterMode
impl Unpin for EncounterMode
impl UnsafeUnpin for EncounterMode
impl UnwindSafe for EncounterMode
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