Struct tiled::ObjectLayerData
source · 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 copy 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<ObjectLayerData> for ObjectLayerData
impl PartialEq<ObjectLayerData> for ObjectLayerData
source§fn eq(&self, other: &ObjectLayerData) -> bool
fn eq(&self, other: &ObjectLayerData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.