Struct snake_sdk::Observation
source · pub struct Observation {
pub poison: u32,
pub item: Option<ObservationItem>,
}
Fields§
§poison: u32
The amount of damage to a snakes health if the head of a snake is on top of poison at the end of a tick
item: Option<ObservationItem>
The item at this location
Trait Implementations§
source§impl Clone for Observation
impl Clone for Observation
source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Observation
impl Debug for Observation
source§impl Hash for Observation
impl Hash for Observation
source§impl PartialEq<Observation> for Observation
impl PartialEq<Observation> for Observation
source§fn eq(&self, other: &Observation) -> bool
fn eq(&self, other: &Observation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.