pub struct TileLayer {
pub tiles: Vec<Option<Entity>>,
pub grid_size: UVec2,
pub tile_size: Vec2,
pub atlas: Handle<Atlas>,
}Expand description
A tilemap layer component.
Fields§
§tiles: Vec<Option<Entity>>The vector of tile slots in this layer.
grid_size: UVec2The size of the layer in tiles.
tile_size: Vec2The size of each tile in the layer.
atlas: Handle<Atlas>The texture atlas to use for the layer
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileLayer
impl RefUnwindSafe for TileLayer
impl Send for TileLayer
impl Sync for TileLayer
impl Unpin for TileLayer
impl UnwindSafe for TileLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more