pub struct TileMapLayer {
pub name: String,
pub visible: bool,
pub collision_enabled: bool,
pub collision_layer: u32,
pub collision_mask: u32,
pub solid_frames: Option<Vec<String>>,
pub tiles: Vec<TileCell>,
}Expand description
A named layer of placed tiles within a TileMapDoc.
Fields§
§name: StringLayer display name.
visible: boolVisibility flag for rendering.
collision_enabled: boolWhether this layer generates physics collision bodies.
collision_layer: u32Physics collision layer bitmask.
collision_mask: u32Physics collision mask bitmask.
solid_frames: Option<Vec<String>>Optional whitelist of atlas frame names treated as solid for collisions.
tiles: Vec<TileCell>Sparse array of placed tiles in this layer.
Implementations§
Trait Implementations§
Source§impl Clone for TileMapLayer
impl Clone for TileMapLayer
Source§impl Debug for TileMapLayer
impl Debug for TileMapLayer
Source§impl<'de> Deserialize<'de> for TileMapLayer
impl<'de> Deserialize<'de> for TileMapLayer
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
Source§impl PartialEq for TileMapLayer
impl PartialEq for TileMapLayer
Source§impl Serialize for TileMapLayer
impl Serialize for TileMapLayer
impl StructuralPartialEq for TileMapLayer
Auto Trait Implementations§
impl Forget for TileMapLayer
impl Freeze for TileMapLayer
impl Move for TileMapLayer
impl RefUnwindSafe for TileMapLayer
impl Send for TileMapLayer
impl Sync for TileMapLayer
impl Unpin for TileMapLayer
impl UnsafeUnpin for TileMapLayer
impl UnwindSafe for TileMapLayer
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