diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-20T01·55-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-20T01·55-0400 |
commit | 29c80ac8ba0d733c6c452d8fd39e9561553495b0 (patch) | |
tree | f8384229d84b0d281c2fbbe976aeb5ebc21bdc24 /src/entities/entity_char.rs | |
parent | 4e9138aa6ff72e34392e3467c40d5ddf095f0027 (diff) |
Add the beginning of item entities
Add a new Item raw type and entity type, with preliminary, basic support for food. There's a really frustrating toml-rs bug that prevents writing these nicely as toml right now, so I also added support for mixing JSON and TOML in a single config dir
Diffstat (limited to 'src/entities/entity_char.rs')
-rw-r--r-- | src/entities/entity_char.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entities/entity_char.rs b/src/entities/entity_char.rs index 578aaf3da5c3..2f845820021e 100644 --- a/src/entities/entity_char.rs +++ b/src/entities/entity_char.rs @@ -4,7 +4,9 @@ use termion::color; #[derive(Debug, Deserialize)] pub struct EntityChar { + #[serde(default)] color: Color, + #[serde(rename = "char")] chr: char, } |