pub struct AssemblingMachine {Show 15 fields
pub name: &'static str,
pub icon: &'static str,
pub crafting_speed: f64,
pub crafting_categories: &'static [&'static str],
pub energy_usage: &'static str,
pub energy_source: EnergySource,
pub icon_size: Option<i64>,
pub flags: Option<&'static [&'static str]>,
pub minable: Option<MinableProperties>,
pub max_health: Option<f64>,
pub collision_box: Option<BoundingBox>,
pub selection_box: Option<BoundingBox>,
pub module_slots: Option<i64>,
pub subgroup: Option<&'static str>,
pub order: Option<&'static str>,
}Expand description
Minimal AssemblingMachinePrototype for data.extend.
An assembling machine - like the assembling machines 1/2/3 in the game, but you can use your own recipe categories.
type = "assembling-machine" is injected by the Lua generator.
Fields§
§name: &'static strInternal entity prototype name.
icon: &'static strPackaged icon path.
crafting_speed: f64Crafting speed multiplier.
crafting_categories: &'static [&'static str]Recipe category ids this machine accepts.
energy_usage: &'static strEnergy usage string (e.g. "150kW").
energy_source: EnergySourceSimplified energy source table.
icon_size: Option<i64>Icon pixel size.
flags: Option<&'static [&'static str]>Entity flags (e.g. placeable-neutral, player-creation).
minable: Option<MinableProperties>Mining properties when the entity is mined.
max_health: Option<f64>Maximum health.
collision_box: Option<BoundingBox>Collision box.
selection_box: Option<BoundingBox>Selection box.
module_slots: Option<i64>Number of module slots.
subgroup: Option<&'static str>Item subgroup id.
order: Option<&'static str>Sort order string.
Trait Implementations§
Source§impl Clone for AssemblingMachine
impl Clone for AssemblingMachine
Source§fn clone(&self) -> AssemblingMachine
fn clone(&self) -> AssemblingMachine
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 moreimpl Copy for AssemblingMachine
Source§impl Debug for AssemblingMachine
impl Debug for AssemblingMachine
Source§impl Default for AssemblingMachine
impl Default for AssemblingMachine
Source§fn default() -> AssemblingMachine
fn default() -> AssemblingMachine
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssemblingMachine
impl PartialEq for AssemblingMachine
impl StructuralPartialEq for AssemblingMachine
Auto Trait Implementations§
impl Freeze for AssemblingMachine
impl RefUnwindSafe for AssemblingMachine
impl Send for AssemblingMachine
impl Sync for AssemblingMachine
impl Unpin for AssemblingMachine
impl UnsafeUnpin for AssemblingMachine
impl UnwindSafe for AssemblingMachine
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