pub struct ConsumeProduceDescription {
pub string_table: Option<String>,
pub recipes: Vec<ProduceRecipe>,
pub cycles: i32,
pub work_type: u32,
pub message_type: u32,
pub message_value: i32,
pub duration: f32,
pub lifetime: i32,
pub selector: i32,
}Expand description
ConsumeProduceDescription (Template\X.rsc:consumeproduce).
Original: FUN_14011e5b0.
Fields§
§string_table: Option<String>String table of the recipe labels.
recipes: Vec<ProduceRecipe>The recipes.
cycles: i32Work cycles per production.
work_type: u32Work type (tool mesh, PerformWork animation type + 9 below 11, walk mode).
message_type: u32The type of a message sent to the building’s component of that type after each production.
message_value: i32The value of that message.
duration: f32Seconds per work cycle.
lifetime: i32Productions before the workplace is exhausted (−1: never).
selector: i32Initial recipe selector (−1: weighted random).
Trait Implementations§
Source§impl Clone for ConsumeProduceDescription
impl Clone for ConsumeProduceDescription
Source§fn clone(&self) -> ConsumeProduceDescription
fn clone(&self) -> ConsumeProduceDescription
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 ConsumeProduceDescription
impl Debug for ConsumeProduceDescription
Source§impl Default for ConsumeProduceDescription
impl Default for ConsumeProduceDescription
Source§fn default() -> ConsumeProduceDescription
fn default() -> ConsumeProduceDescription
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConsumeProduceDescription
impl RefUnwindSafe for ConsumeProduceDescription
impl Send for ConsumeProduceDescription
impl Sync for ConsumeProduceDescription
impl Unpin for ConsumeProduceDescription
impl UnsafeUnpin for ConsumeProduceDescription
impl UnwindSafe for ConsumeProduceDescription
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