pub enum WorkerRouteStop {
Waypoint {
x: f32,
y: f32,
z: f32,
},
HarvestNode {
node_id: String,
},
DepositAt {
container_id: String,
filter: Option<Vec<String>>,
},
TradeWith {
npc_id: Option<String>,
template: String,
sell_all: bool,
},
WithdrawFrom {
container_id: String,
items: Vec<WorkerRouteWithdrawItem>,
},
CraftAt {
device: String,
blueprint: String,
qty: Option<u32>,
},
RestIfNeeded,
Wait {
wait_ticks: u64,
},
}Expand description
One typed stop in an ordered worker route. Mirrors the sim WorkerRouteStop.
Variants§
Waypoint
HarvestNode
DepositAt
Fields
TradeWith
Travel to an NPC and sell template (whole stack when sell_all).
npc_id: None → auto-pick the nearest NPC that buys template.
WithdrawFrom
Withdraw specific items from an owned storage container.
CraftAt
Craft blueprint at device (or "hand"). qty: None = until inputs exhausted.
RestIfNeeded
Wait
Implementations§
Source§impl WorkerRouteStop
impl WorkerRouteStop
pub fn summary(&self) -> String
Sourcepub fn summary_resolved(
&self,
container_label: impl Fn(&str) -> String,
npc_label: impl Fn(&str) -> String,
node_label: impl Fn(&str) -> String,
) -> String
pub fn summary_resolved( &self, container_label: impl Fn(&str) -> String, npc_label: impl Fn(&str) -> String, node_label: impl Fn(&str) -> String, ) -> String
Human-facing summary using friendly labels for containers / NPCs / nodes.
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
Short label for the editor list (without the stop index).
Trait Implementations§
Source§impl Clone for WorkerRouteStop
impl Clone for WorkerRouteStop
Source§fn clone(&self) -> WorkerRouteStop
fn clone(&self) -> WorkerRouteStop
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 WorkerRouteStop
impl Debug for WorkerRouteStop
Source§impl PartialEq for WorkerRouteStop
impl PartialEq for WorkerRouteStop
impl StructuralPartialEq for WorkerRouteStop
Auto Trait Implementations§
impl Freeze for WorkerRouteStop
impl RefUnwindSafe for WorkerRouteStop
impl Send for WorkerRouteStop
impl Sync for WorkerRouteStop
impl Unpin for WorkerRouteStop
impl UnsafeUnpin for WorkerRouteStop
impl UnwindSafe for WorkerRouteStop
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