[][src]Struct ogmo3::project::Tileset

pub struct Tileset {
    pub label: String,
    pub path: PathBuf,
    pub image: String,
    pub tile_width: i32,
    pub tile_height: i32,
    pub tile_separation_x: i32,
    pub tile_separation_y: i32,
}

A tileset.

Fields

label: String

The name of the tileset.

path: PathBuf

The path to the tileset's image, relative to the project's path.

image: String

The tileset's image, encoded in base 64.

tile_width: i32

The width of each tile in the tileset.

tile_height: i32

The height of each tile in the tileset.

tile_separation_x: i32

The number of empty pixels that seperate each tile on the X axis in the tileset.

tile_separation_y: i32

The number of empty pixels that seperate each tile on the Y axis in the tileset.

Trait Implementations

impl Clone for Tileset[src]

impl Debug for Tileset[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Tileset

impl Send for Tileset

impl Sync for Tileset

impl Unpin for Tileset

impl UnwindSafe for Tileset

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.