pub struct LuaItemCommonCreateBlueprintParams {
pub always_include_tiles: bool,
pub area: BoundingBox,
pub force: LuaAny,
pub include_entities: bool,
pub include_fuel: bool,
pub include_modules: bool,
pub include_station_names: bool,
pub include_trains: bool,
pub surface: LuaAny,
}Expand description
Sets up this blueprint using the found blueprintable entities/tiles on the surface.
Fields§
§always_include_tiles: boolWhen true, blueprintable tiles are always included in the blueprint. When false they’re only included if no entities exist in the setup area. Defaults to false.
area: BoundingBoxThe bounding box
force: LuaAnyForce to use for the creation
include_entities: boolWhen true, entities are included in the blueprint. Defaults to true.
include_fuel: boolWhen true, train fuel is included in the blueprint, Defaults to true.
include_modules: boolWhen true, modules are included in the blueprint. Defaults to true.
include_station_names: boolWhen true, station names are included in the blueprint. Defaults to false.
include_trains: boolWhen true, trains are included in the blueprint. Defaults to false.
surface: LuaAnySurface to create from
Trait Implementations§
Source§impl Clone for LuaItemCommonCreateBlueprintParams
impl Clone for LuaItemCommonCreateBlueprintParams
Source§fn clone(&self) -> LuaItemCommonCreateBlueprintParams
fn clone(&self) -> LuaItemCommonCreateBlueprintParams
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 Default for LuaItemCommonCreateBlueprintParams
impl Default for LuaItemCommonCreateBlueprintParams
Source§fn default() -> LuaItemCommonCreateBlueprintParams
fn default() -> LuaItemCommonCreateBlueprintParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaItemCommonCreateBlueprintParams
impl RefUnwindSafe for LuaItemCommonCreateBlueprintParams
impl Send for LuaItemCommonCreateBlueprintParams
impl Sync for LuaItemCommonCreateBlueprintParams
impl Unpin for LuaItemCommonCreateBlueprintParams
impl UnsafeUnpin for LuaItemCommonCreateBlueprintParams
impl UnwindSafe for LuaItemCommonCreateBlueprintParams
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