pub struct TileLayer {
pub chunks: Option<Vec<Chunk>>,
pub data: Vec<u32>,
pub height: u32,
pub width: u32,
}
Fields§
§chunks: Option<Vec<Chunk>>
Array of chunks (optional, generally infinite maps)
data: Vec<u32>
Data consists of the global ID’s of tiles making up this layer of the map
height: u32
Row count. Same as map height for fixed-size maps.
width: u32
Column count. Same as map width for fixed-size maps.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TileLayer
impl<'de> Deserialize<'de> for TileLayer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TileLayer
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