pub struct OnPreBuildEvent {
pub build_mode: &'static str,
pub created_by_moving: bool,
pub direction: &'static str,
pub flip_horizontal: bool,
pub flip_vertical: bool,
pub mirror: bool,
pub name: &'static str,
pub player_index: u32,
pub position: LuaAny,
pub tick: u32,
}Expand description
Called when players uses an item to build something. Called before on_built_entity.
Fields§
§build_mode: &'static str§created_by_moving: bool§direction: &'static str§flip_horizontal: bool§flip_vertical: bool§mirror: bool§name: &'static str§player_index: u32§position: LuaAny§tick: u32Trait Implementations§
Source§impl Clone for OnPreBuildEvent
impl Clone for OnPreBuildEvent
Source§fn clone(&self) -> OnPreBuildEvent
fn clone(&self) -> OnPreBuildEvent
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 moreimpl Copy for OnPreBuildEvent
Source§impl Debug for OnPreBuildEvent
impl Debug for OnPreBuildEvent
Source§impl Default for OnPreBuildEvent
impl Default for OnPreBuildEvent
Source§fn default() -> OnPreBuildEvent
fn default() -> OnPreBuildEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPreBuildEvent
impl PartialEq for OnPreBuildEvent
impl StructuralPartialEq for OnPreBuildEvent
Auto Trait Implementations§
impl Freeze for OnPreBuildEvent
impl RefUnwindSafe for OnPreBuildEvent
impl Send for OnPreBuildEvent
impl Sync for OnPreBuildEvent
impl Unpin for OnPreBuildEvent
impl UnsafeUnpin for OnPreBuildEvent
impl UnwindSafe for OnPreBuildEvent
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