pub struct LuaPlayerBuildFromCursorParams {
pub build_mode: String,
pub direction: String,
pub flip_horizontal: bool,
pub flip_vertical: bool,
pub mirror: bool,
pub position: MapPosition,
pub skip_fog_of_war: bool,
pub terrain_building_size: u32,
}Expand description
Builds whatever is in the cursor on the surface the player is on. The cursor stack will automatically be reduced as if the player built normally.
Fields§
§build_mode: StringWhich build mode should be used instead of normal build. Defaults to defines.build_mode.normal.
direction: StringDirection the entity would be placed
flip_horizontal: boolWhether to flip the blueprint horizontally. Defaults to false.
flip_vertical: boolWhether to flip the blueprint vertically. Defaults to false.
mirror: boolWhether to mirror the entity
position: MapPositionWhere the entity would be placed
skip_fog_of_war: boolIf chunks covered by fog-of-war are skipped. Defaults to false.
terrain_building_size: u32The size for building terrain if building terrain. Defaults to 2.
Trait Implementations§
Source§impl Clone for LuaPlayerBuildFromCursorParams
impl Clone for LuaPlayerBuildFromCursorParams
Source§fn clone(&self) -> LuaPlayerBuildFromCursorParams
fn clone(&self) -> LuaPlayerBuildFromCursorParams
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 LuaPlayerBuildFromCursorParams
impl Default for LuaPlayerBuildFromCursorParams
Source§fn default() -> LuaPlayerBuildFromCursorParams
fn default() -> LuaPlayerBuildFromCursorParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaPlayerBuildFromCursorParams
impl RefUnwindSafe for LuaPlayerBuildFromCursorParams
impl Send for LuaPlayerBuildFromCursorParams
impl Sync for LuaPlayerBuildFromCursorParams
impl Unpin for LuaPlayerBuildFromCursorParams
impl UnsafeUnpin for LuaPlayerBuildFromCursorParams
impl UnwindSafe for LuaPlayerBuildFromCursorParams
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