[][src]Struct ldtk::EntityInstance

pub struct EntityInstance {
    pub grid: Vec<i64>,
    pub identifier: String,
    pub tile: Option<HashMap<String, Option<Value>>>,
    pub def_uid: i64,
    pub field_instances: Vec<Option<FieldInstance>>,
    pub px: Vec<i64>,
}

Fields

grid: Vec<i64>

Grid-based coordinates ([x,y] format)

identifier: String

Unique String identifier

tile: Option<HashMap<String, Option<Value>>>

Optional Tile used to display this entity (it could either be the default Entity tile, or some tile provided by a field value, like an Enum).

def_uid: i64

Reference of the Entity definition UID

field_instances: Vec<Option<FieldInstance>>px: Vec<i64>

Pixel coordinates ([x,y] format). Don't forget optional layer offsets, if they exist!

Trait Implementations

impl Debug for EntityInstance[src]

impl<'de> Deserialize<'de> for EntityInstance[src]

impl Serialize for EntityInstance[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.