pub struct ResourceNodeView {Show 17 fields
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,
pub tile_id: Option<String>,
pub paperdoll_ref: Option<String>,
pub yaw: f32,
pub pitch: f32,
pub roll: f32,
pub draw_scale: f32,
pub sprite_mode: Option<String>,
pub presentation_state: Option<String>,
}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).
tile_id: Option<String>Optional gfx tile id (resource.oak_log, …).
paperdoll_ref: Option<String>Optional paperdoll skin id from the item template (preferred over tile_id in gfx).
yaw: f32Paperdoll facing yaw in radians (0 = north). From map placement.
pitch: f32Paperdoll pitch in radians (0 = upright). From map placement.
roll: f32Paperdoll roll in radians (0 = upright). From map placement.
draw_scale: f32Draw scale relative to one map cell (1.0 = cell size).
sprite_mode: Option<String>Resolved gfx sprite mode for tile_id (server-computed).
presentation_state: Option<String>Canonical presentation key (available, harvesting, depleted).
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