#[repr(C)]pub struct PropPlace {
pub header: Header,
pub item: ItemId,
pub reserved: u32,
pub position: [f64; 3],
pub orientation: [f32; 4],
}Expand description
A prop a transaction places, as a player places one from an item, for
TransactionOp::PLACE_PROP.
§Examples
use enshwick::abi::{Header, PropPlace};
let chest = PropPlace {
header: Header::of::<PropPlace>(),
item: enshwick::ItemId::new(0x1234),
reserved: 0,
position: [100.0, 40.0, 100.0],
orientation: [0.0, 0.0, 0.0, 1.0],
};
assert_eq!(chest.item, enshwick::ItemId::new(0x1234));Fields§
§header: HeaderSize and version of this struct.
item: ItemIdThe item whose placed template the prop is.
reserved: u32Zero.
position: [f64; 3]Where it stands, in metres.
orientation: [f32; 4]Which way it faces, a quaternion x, y, z, w.
Trait Implementations§
impl Copy for PropPlace
impl Headed for PropPlace
impl StructuralPartialEq for PropPlace
Auto Trait Implementations§
impl Freeze for PropPlace
impl RefUnwindSafe for PropPlace
impl Send for PropPlace
impl Sync for PropPlace
impl Unpin for PropPlace
impl UnsafeUnpin for PropPlace
impl UnwindSafe for PropPlace
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