pub struct LuaSurfaceCreateEntitiesFromBlueprintStringParams {
pub by_player: LuaAny,
pub direction: String,
pub flip_horizontal: bool,
pub flip_vertical: bool,
pub force: LuaAny,
pub position: MapPosition,
pub string: String,
}Expand description
This method only works when used in simulations.
Places entities via the given blueprint string. These entities are force-built.
Fields§
§by_player: LuaAnyThe player that placed the blueprint. Defaults to nil.
direction: StringThe direction to place the blueprint in. Defaults to north.
flip_horizontal: boolWhether to flip the blueprint horizontally. Defaults to false.
flip_vertical: boolWhether to flip the blueprint vertically. Defaults to false.
force: LuaAnyThe force to place the blueprint for. Defaults to the player force.
position: MapPositionThe position to place the blueprint at.
string: StringThe blueprint string to import.
Trait Implementations§
Source§impl Clone for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl Clone for LuaSurfaceCreateEntitiesFromBlueprintStringParams
Source§fn clone(&self) -> LuaSurfaceCreateEntitiesFromBlueprintStringParams
fn clone(&self) -> LuaSurfaceCreateEntitiesFromBlueprintStringParams
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 LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl Default for LuaSurfaceCreateEntitiesFromBlueprintStringParams
Source§fn default() -> LuaSurfaceCreateEntitiesFromBlueprintStringParams
fn default() -> LuaSurfaceCreateEntitiesFromBlueprintStringParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl RefUnwindSafe for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl Send for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl Sync for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl Unpin for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl UnsafeUnpin for LuaSurfaceCreateEntitiesFromBlueprintStringParams
impl UnwindSafe for LuaSurfaceCreateEntitiesFromBlueprintStringParams
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