pub struct ResourceNodeView {
pub id: String,
pub label: String,
pub x: f32,
pub y: f32,
pub z: f32,
pub item_template: String,
pub state: ResourceNodeState,
pub blocking: bool,
pub blocking_radius_m: f32,
}Expand description
Harvestable node visible to clients.
Fields§
§id: String§label: String§x: f32§y: f32§z: f32§item_template: String§state: ResourceNodeState§blocking: boolWhen true, players cannot walk through this node while available/harvesting.
blocking_radius_m: f32Collision radius for pathfinding (meters).
Trait Implementations§
Source§impl Clone for ResourceNodeView
impl Clone for ResourceNodeView
Source§fn clone(&self) -> ResourceNodeView
fn clone(&self) -> ResourceNodeView
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 moreSource§impl Debug for ResourceNodeView
impl Debug for ResourceNodeView
Source§impl<'de> Deserialize<'de> for ResourceNodeView
impl<'de> Deserialize<'de> for ResourceNodeView
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
Source§impl PartialEq for ResourceNodeView
impl PartialEq for ResourceNodeView
Source§impl Serialize for ResourceNodeView
impl Serialize for ResourceNodeView
impl StructuralPartialEq for ResourceNodeView
Auto Trait Implementations§
impl Freeze for ResourceNodeView
impl RefUnwindSafe for ResourceNodeView
impl Send for ResourceNodeView
impl Sync for ResourceNodeView
impl Unpin for ResourceNodeView
impl UnsafeUnpin for ResourceNodeView
impl UnwindSafe for ResourceNodeView
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