pub struct GroundDropView {
pub id: String,
pub template_id: String,
pub quantity: u32,
pub x: f32,
pub y: f32,
pub z: f32,
pub tile_id: Option<String>,
pub paperdoll_ref: Option<String>,
pub yaw: f32,
pub pitch: f32,
pub roll: f32,
pub draw_scale: f32,
}Fields§
§id: String§template_id: String§quantity: u32§x: f32§y: f32§z: f32§tile_id: Option<String>Optional gfx tile id from the item template.
paperdoll_ref: Option<String>Optional paperdoll skin id from the item template (preferred over tile_id in gfx).
yaw: f32Paperdoll facing yaw in radians (0 = north).
pitch: f32Paperdoll pitch in radians (0 = upright).
roll: f32Paperdoll roll in radians (0 = upright; tilts in the view plane).
draw_scale: f32Draw scale relative to one map cell (1.0 = cell size).
Trait Implementations§
Source§impl Clone for GroundDropView
impl Clone for GroundDropView
Source§fn clone(&self) -> GroundDropView
fn clone(&self) -> GroundDropView
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 Debug for GroundDropView
impl Debug for GroundDropView
Source§impl<'de> Deserialize<'de> for GroundDropView
impl<'de> Deserialize<'de> for GroundDropView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GroundDropView
impl PartialEq for GroundDropView
Source§impl Serialize for GroundDropView
impl Serialize for GroundDropView
impl StructuralPartialEq for GroundDropView
Auto Trait Implementations§
impl Freeze for GroundDropView
impl RefUnwindSafe for GroundDropView
impl Send for GroundDropView
impl Sync for GroundDropView
impl Unpin for GroundDropView
impl UnsafeUnpin for GroundDropView
impl UnwindSafe for GroundDropView
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