pub struct ObjectLayerData {
pub colour: Option<Color>,
/* private fields */
}
Expand description
Raw data referring to a map object layer or tile collision data.
Fields§
§colour: Option<Color>
The color used in the editor to display objects in this layer.
Implementations§
Source§impl ObjectLayerData
impl ObjectLayerData
Sourcepub fn object_data(&self) -> &[ObjectData]
pub fn object_data(&self) -> &[ObjectData]
Returns the data belonging to the objects contained within the layer, in the order they were declared in the TMX file.
Trait Implementations§
Source§impl Clone for ObjectLayerData
impl Clone for ObjectLayerData
Source§fn clone(&self) -> ObjectLayerData
fn clone(&self) -> ObjectLayerData
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectLayerData
impl Debug for ObjectLayerData
Source§impl PartialEq for ObjectLayerData
impl PartialEq for ObjectLayerData
impl StructuralPartialEq for ObjectLayerData
Auto Trait Implementations§
impl Freeze for ObjectLayerData
impl RefUnwindSafe for ObjectLayerData
impl Send for ObjectLayerData
impl Sync for ObjectLayerData
impl Unpin for ObjectLayerData
impl UnwindSafe for ObjectLayerData
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