pub enum PropertyValue {
BoolValue(bool),
FloatValue(f32),
IntValue(i32),
ColorValue(Color),
StringValue(String),
FileValue(String),
ObjectValue(u32),
ClassValue {
property_type: String,
properties: Properties,
},
}
Expand description
Represents a custom property’s value.
Also read the TMX docs.
Variants§
BoolValue(bool)
A boolean value. Corresponds to the bool
property type.
FloatValue(f32)
A floating point value. Corresponds to the float
property type.
IntValue(i32)
A signed integer value. Corresponds to the int
property type.
ColorValue(Color)
A color value. Corresponds to the color
property type.
StringValue(String)
A string value. Corresponds to the string
property type.
FileValue(String)
A filepath value. Corresponds to the file
property type.
Holds the path relative to the map or tileset.
ObjectValue(u32)
An object ID value. Corresponds to the object
property type.
Holds the id of a referenced object, or 0 if unset.
ClassValue
A class value. Corresponds to the class
property type.
Holds the type name and a set of properties.
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
Source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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