Skip to content

Commit

Permalink
Add support for file properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Grosse-Holz committed Feb 19, 2021
1 parent 19c3112 commit 993978b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub enum PropertyValue {
IntValue(i32),
ColorValue(u32),
StringValue(String),
FileValue(String),
}

impl PropertyValue {
Expand All @@ -175,6 +176,7 @@ impl PropertyValue {
))),
},
"string" => Ok(PropertyValue::StringValue(value)),
"file" => Ok(PropertyValue::FileValue(value)),
_ => Err(TiledError::Other(format!(
"Unknown property type \"{}\"",
property_type
Expand Down

0 comments on commit 993978b

Please sign in to comment.