pub struct LuaPlayerBuildFromCursorParams {
pub build_mode: Option<String>,
pub direction: Option<String>,
pub flip_horizontal: Option<bool>,
pub flip_vertical: Option<bool>,
pub mirror: Option<bool>,
pub position: MapPosition,
pub skip_fog_of_war: Option<bool>,
pub terrain_building_size: Option<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: Option<String>Which build mode should be used instead of normal build. Defaults to defines.build_mode.normal.
direction: Option<String>Direction the entity would be placed
flip_horizontal: Option<bool>Whether to flip the blueprint horizontally. Defaults to false.
flip_vertical: Option<bool>Whether to flip the blueprint vertically. Defaults to false.
mirror: Option<bool>Whether to mirror the entity
position: MapPositionWhere the entity would be placed
skip_fog_of_war: Option<bool>If chunks covered by fog-of-war are skipped. Defaults to false.
terrain_building_size: Option<u32>The 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