pub struct LuaControlCanPlaceEntityParams {
pub direction: String,
pub name: LuaAny,
pub position: MapPosition,
}Expand description
Checks if this character or player can build the given entity at the given location on the surface the character or player is on.
Fields§
§direction: StringDirection the entity would be facing. Defaults to north.
name: LuaAnyName of the entity that would be built.
position: MapPositionWhere the entity would be placed.
Trait Implementations§
Source§impl Clone for LuaControlCanPlaceEntityParams
impl Clone for LuaControlCanPlaceEntityParams
Source§fn clone(&self) -> LuaControlCanPlaceEntityParams
fn clone(&self) -> LuaControlCanPlaceEntityParams
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 LuaControlCanPlaceEntityParams
impl Default for LuaControlCanPlaceEntityParams
Source§fn default() -> LuaControlCanPlaceEntityParams
fn default() -> LuaControlCanPlaceEntityParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaControlCanPlaceEntityParams
impl RefUnwindSafe for LuaControlCanPlaceEntityParams
impl Send for LuaControlCanPlaceEntityParams
impl Sync for LuaControlCanPlaceEntityParams
impl Unpin for LuaControlCanPlaceEntityParams
impl UnsafeUnpin for LuaControlCanPlaceEntityParams
impl UnwindSafe for LuaControlCanPlaceEntityParams
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