pub struct TileSet {
pub tile_size: PairU32,
pub first_gid: ID,
pub name: String,
pub spacing: u8,
pub margin: u8,
pub image: Image,
pub tile_stuff: HashMap<u32, TileAuxInfo>,
}Fields§
§tile_size: PairU32§first_gid: ID§name: String§spacing: u8§margin: u8§image: ImageOnly supports a single Texture Atlas. Undecided on how to represent multiple images
tile_stuff: HashMap<u32, TileAuxInfo>This u32 is the LOCAL id of the tile (relative to this tileset)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileSet
impl RefUnwindSafe for TileSet
impl Send for TileSet
impl Sync for TileSet
impl Unpin for TileSet
impl UnsafeUnpin for TileSet
impl UnwindSafe for TileSet
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