pub struct TilesetChunk<'a> {
pub id: Dword,
pub flags: TilesetFlags,
pub number_of_tiles: Dword,
pub width: Word,
pub height: Word,
pub base_index: Short,
pub name: &'a str,
pub external_file: Option<TilesetExternalFile>,
pub tiles: Option<TilesetTiles<'a>>,
}Fields§
§id: DwordTileset ID
flags: TilesetFlagsTileset flags
number_of_tiles: DwordNumber of tiles
width: WordTile Width
height: WordTile Height
base_index: ShortBase Index: Number to show in the screen from the tile with index 1 and so on (by default this is field is 1, so the data that is displayed is equivalent to the data in memory). But it can be 0 to display zero-based indexing (this field isn’t used for the representation of the data in the file, it’s just for UI purposes).
name: &'a strName of the tileset
external_file: Option<TilesetExternalFile>Link to external file
tiles: Option<TilesetTiles<'a>>Tiles inside this file
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TilesetChunk<'a>
impl<'a> RefUnwindSafe for TilesetChunk<'a>
impl<'a> Send for TilesetChunk<'a>
impl<'a> Sync for TilesetChunk<'a>
impl<'a> Unpin for TilesetChunk<'a>
impl<'a> UnwindSafe for TilesetChunk<'a>
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> 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