pub struct ResourceNodeView {Show 20 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 yaw: f32,
pub pitch: f32,
pub roll: f32,
pub draw_scale: f32,
pub sprite_mode: Option<String>,
pub presentation_state: Option<String>,
pub growth_progress: Option<f32>,
pub channel_start_tick: Option<Tick>,
pub channel_end_tick: Option<Tick>,
pub harvest_drop_templates: Vec<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, …).
yaw: f32Facing yaw in radians (0 = north). From map placement.
pitch: f32Pitch in radians (0 = upright). From map placement.
roll: f32Roll 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).
growth_progress: Option<f32>Farm crop growth 0.0–1.0 while immature; None for other nodes and mature crops.
Postcard always serializes optional fields (no skip_serializing_if) so decode stays aligned.
channel_start_tick: Option<Tick>Active harvest channel (sim ticks), for progress rings on the node.
channel_end_tick: Option<Tick>§harvest_drop_templates: Vec<String>Possible loot templates from this node’s harvest loot table (route deposit filters).
Trait Implementations§
Source§impl Clone for ResourceNodeView
impl Clone for ResourceNodeView
Source§fn clone(&self) -> ResourceNodeView
fn clone(&self) -> ResourceNodeView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more