pub struct StaticLocation {
pub object_id: u16,
pub x: u8,
pub y: u8,
pub altitude: i8,
pub checksum: u16,
}Expand description
The location of a fixed map prop, relative to a block
Fields§
§object_id: u16A lookup into art.mul, as to what the static should be
x: u8The x location of the prop
y: u8The y location of the prop (increasing y means further downwards)
altitude: i8How high to render this item
checksum: u16Unused
Implementations§
Trait Implementations§
Source§impl Clone for StaticLocation
impl Clone for StaticLocation
Source§fn clone(&self) -> StaticLocation
fn clone(&self) -> StaticLocation
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 StaticLocation
impl Debug for StaticLocation
Source§impl PartialEq for StaticLocation
impl PartialEq for StaticLocation
Source§fn eq(&self, other: &StaticLocation) -> bool
fn eq(&self, other: &StaticLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StaticLocation
impl Eq for StaticLocation
impl StructuralPartialEq for StaticLocation
Auto Trait Implementations§
impl Freeze for StaticLocation
impl RefUnwindSafe for StaticLocation
impl Send for StaticLocation
impl Sync for StaticLocation
impl Unpin for StaticLocation
impl UnsafeUnpin for StaticLocation
impl UnwindSafe for StaticLocation
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