pub struct LuaSurfaceCreateDecorativesParams {
pub check_collision: bool,
pub decoratives: Vec<Decorative>,
}Expand description
Adds the given decoratives to the surface.
This will merge decoratives of the same type that already exist effectively increasing the “amount” field.
Fields§
§check_collision: boolIf collision should be checked against entities/tiles.
decoratives: Vec<Decorative>Trait Implementations§
Source§impl Clone for LuaSurfaceCreateDecorativesParams
impl Clone for LuaSurfaceCreateDecorativesParams
Source§fn clone(&self) -> LuaSurfaceCreateDecorativesParams
fn clone(&self) -> LuaSurfaceCreateDecorativesParams
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 LuaSurfaceCreateDecorativesParams
impl Default for LuaSurfaceCreateDecorativesParams
Source§fn default() -> LuaSurfaceCreateDecorativesParams
fn default() -> LuaSurfaceCreateDecorativesParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCreateDecorativesParams
impl RefUnwindSafe for LuaSurfaceCreateDecorativesParams
impl Send for LuaSurfaceCreateDecorativesParams
impl Sync for LuaSurfaceCreateDecorativesParams
impl Unpin for LuaSurfaceCreateDecorativesParams
impl UnsafeUnpin for LuaSurfaceCreateDecorativesParams
impl UnwindSafe for LuaSurfaceCreateDecorativesParams
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