[][src]Trait rs_tiled_json::property::HasProperty

pub trait HasProperty {
    fn get_property_vector(&self) -> &Vec<Property>;

    fn get_property(&self, name: &str) -> Option<&Property> { ... }
fn get_property_value(&self, name: &str) -> Option<&PropertyValue> { ... } }

Required methods

fn get_property_vector(&self) -> &Vec<Property>

Get the whole Property vector.

Loading content...

Provided methods

fn get_property(&self, name: &str) -> Option<&Property>

Find a property by name.

fn get_property_value(&self, name: &str) -> Option<&PropertyValue>

Get the PropertyValue by name from an obhect that has a list of properties.

One might be better served using get_property() and using the property functions from there.

Loading content...

Implementors

impl HasProperty for Layer[src]

fn get_property_vector(&self) -> &Vec<Property>[src]

Enable property access for layers.

impl HasProperty for Map[src]

fn get_property_vector(&self) -> &Vec<Property>[src]

Provide access to property values for Maps

impl HasProperty for Object[src]

fn get_property_vector(&self) -> &Vec<Property>[src]

Access properties of Objects.

impl HasProperty for Tile[src]

fn get_property_vector(&self) -> &Vec<Property>[src]

Get access to the properties of the Tile object.

impl HasProperty for Tileset[src]

fn get_property_vector(&self) -> &Vec<Property>[src]

Get access to properties of Tileset.

Loading content...