#[non_exhaustive]pub struct TerrainTiles {
pub image: ImageId,
pub tile_px: (u32, u32),
pub look: Look,
pub looks: BTreeMap<String, Look>,
}Expand description
A tileset’s terrain tiles. Build it with TerrainTiles::new
(ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image: ImageIdThe image the tiles are in.
tile_px: (u32, u32)A map tile’s size, across × down, in pixels: in the image, and on screen.
look: LookThe tileset’s own look: what a map is painted as unless
looks has the look it names.
looks: BTreeMap<String, Look>Its other looks, by the name a map’s look gives
(MapLook::tiles).
Implementations§
Source§impl TerrainTiles
impl TerrainTiles
Trait Implementations§
Source§impl AssetKind for TerrainTiles
The tileset kind (ADR-0007), with no format of the engine’s: how a
game writes its tiles is its own, and its format reads them into this.
impl AssetKind for TerrainTiles
The tileset kind (ADR-0007), with no format of the engine’s: how a game writes its tiles is its own, and its format reads them into this.
Source§impl Clone for TerrainTiles
impl Clone for TerrainTiles
Source§fn clone(&self) -> TerrainTiles
fn clone(&self) -> TerrainTiles
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerrainTiles
impl Debug for TerrainTiles
impl Eq for TerrainTiles
Source§impl PartialEq for TerrainTiles
impl PartialEq for TerrainTiles
impl StructuralPartialEq for TerrainTiles
Auto Trait Implementations§
impl Freeze for TerrainTiles
impl RefUnwindSafe for TerrainTiles
impl Send for TerrainTiles
impl Sync for TerrainTiles
impl Unpin for TerrainTiles
impl UnsafeUnpin for TerrainTiles
impl UnwindSafe for TerrainTiles
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