[][src]Struct bevy_tiled_prototype::Map

pub struct Map {
    pub map: Map,
    pub meshes: Vec<(u32, u32, Mesh)>,
    pub layers: Vec<Layer>,
    pub tile_size: Vec2,
    pub image_folder: PathBuf,
}

Fields

map: Mapmeshes: Vec<(u32, u32, Mesh)>layers: Vec<Layer>tile_size: Vec2image_folder: PathBuf

Implementations

impl Map[src]

pub fn project_ortho(pos: Vec2, tile_width: f32, tile_height: f32) -> Vec2[src]

pub fn unproject_ortho(pos: Vec2, tile_width: f32, tile_height: f32) -> Vec2[src]

pub fn project_iso(pos: Vec2, tile_width: f32, tile_height: f32) -> Vec2[src]

pub fn unproject_iso(pos: Vec2, tile_width: f32, tile_height: f32) -> Vec2[src]

pub fn center(&self, origin: Transform) -> Transform[src]

pub fn try_from_bytes(asset_path: &Path, bytes: Vec<u8>) -> Result<Map>[src]

Trait Implementations

impl Debug for Map[src]

impl TypeUuid for Map[src]

Auto Trait Implementations

impl RefUnwindSafe for Map

impl Send for Map

impl Sync for Map

impl Unpin for Map

impl UnwindSafe for Map

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Asset for T where
    T: TypeUuid + AssetDynamic + TypeUuidDynamic

impl<T> AssetDynamic for T where
    T: Send + Sync + 'static + TypeUuidDynamic

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

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

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: 'static + Send + Sync

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.

impl<T> TypeUuidDynamic for T where
    T: TypeUuid
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,