From 77181ab8d5df55d06ba07ffcc0f116547ddb74c6 Mon Sep 17 00:00:00 2001 From: Jonas Grosse-Holz <aber@der-b.art> Date: Fri, 19 Feb 2021 16:56:05 +0100 Subject: [PATCH] Add support for file properties --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 486ad84..7f51c94 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 -- GitLab