diff --git a/src/lib.rs b/src/lib.rs index 486ad843f4c4e319cdc4245b625e0f9885f6f736..7f51c94965f6c860b92c7752ee14429f1c3df823 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -150,6 +150,8 @@ pub enum PropertyValue { IntValue(i32), ColorValue(u32), StringValue(String), + /// Holds the path relative to the map or tileset + FileValue(String), } impl PropertyValue { @@ -175,6 +177,7 @@ impl PropertyValue { ))), }, "string" => Ok(PropertyValue::StringValue(value)), + "file" => Ok(PropertyValue::FileValue(value)), _ => Err(TiledError::Other(format!( "Unknown property type \"{}\"", property_type