Struct macroquad_tiled::Object[][src]

pub struct Object {
    pub gid: Option<u32>,
    pub world_x: f32,
    pub world_y: f32,
    pub world_w: f32,
    pub world_h: f32,
    pub tile_x: u32,
    pub tile_y: u32,
    pub tile_w: u32,
    pub tile_h: u32,
    pub name: String,
    pub properties: HashMap<String, String>,
}

Fields

gid: Option<u32>

If not null - the object is (probably) a tile

world_x: f32world_y: f32world_w: f32world_h: f32tile_x: u32tile_y: u32tile_w: u32tile_h: u32name: Stringproperties: HashMap<String, String>

Trait Implementations

impl Debug for Object[src]

Auto Trait Implementations

impl RefUnwindSafe for Object

impl Send for Object

impl Sync for Object

impl Unpin for Object

impl UnwindSafe for Object

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.