pub struct LuaSurfaceCanPlaceEntityParams {
pub build_check_type: String,
pub direction: String,
pub force: LuaAny,
pub forced: bool,
pub inner_name: String,
pub name: LuaAny,
pub position: MapPosition,
}Expand description
Check for collisions with terrain or other entities.
Fields§
§build_check_type: StringWhich type of check should be carried out. Defaults to ghost_revive.
direction: StringDirection of the placed entity. Defaults to north.
force: LuaAnyThe force that would place the entity. Defaults to the "neutral" force.
forced: boolIf true, entities that can be marked for deconstruction are ignored. Only used if build_check_type is either manual_ghost, script_ghost or blueprint_ghost. Defaults to false.
inner_name: StringThe prototype name of the entity contained in the ghost. Only used if name is entity-ghost.
name: LuaAnyName of the entity prototype to check.
position: MapPositionWhere the entity would be placed.
Trait Implementations§
Source§impl Clone for LuaSurfaceCanPlaceEntityParams
impl Clone for LuaSurfaceCanPlaceEntityParams
Source§fn clone(&self) -> LuaSurfaceCanPlaceEntityParams
fn clone(&self) -> LuaSurfaceCanPlaceEntityParams
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 LuaSurfaceCanPlaceEntityParams
impl Default for LuaSurfaceCanPlaceEntityParams
Source§fn default() -> LuaSurfaceCanPlaceEntityParams
fn default() -> LuaSurfaceCanPlaceEntityParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCanPlaceEntityParams
impl RefUnwindSafe for LuaSurfaceCanPlaceEntityParams
impl Send for LuaSurfaceCanPlaceEntityParams
impl Sync for LuaSurfaceCanPlaceEntityParams
impl Unpin for LuaSurfaceCanPlaceEntityParams
impl UnsafeUnpin for LuaSurfaceCanPlaceEntityParams
impl UnwindSafe for LuaSurfaceCanPlaceEntityParams
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