diff options
| author | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
| commit | 9eb3a9da97e53cee14e585e027badb3783b8e25e (patch) | |
| tree | 4840bc49cbde975289b3e3b663967a368b444f8b /src/components/interactable.rs | |
| parent | 13b53f3e89bcd6d33a534403162d1b09502bec70 (diff) | |
turned sprite, playerid and roomid into tuple structs
Diffstat (limited to 'src/components/interactable.rs')
| -rw-r--r-- | src/components/interactable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/interactable.rs b/src/components/interactable.rs index 2f20966..651437c 100644 --- a/src/components/interactable.rs +++ b/src/components/interactable.rs @@ -31,7 +31,7 @@ impl Interactable { pub fn parse_from_parameter(typ: &str, arg: &Parameter) -> Option<Self> { Some(match (typ, arg) { ("trigger", Parameter::String(s)) => Trigger(Trigger::from_str(s)?), - ("visit", Parameter::String(s)) => Visit(RoomId::from_str(s)), + ("visit", Parameter::String(s)) => Visit(RoomId(s.clone())), ("mine", Parameter::String(s)) => Mine(Stat::from_str(s)?), ("say", Parameter::String(s)) => Say(s.clone()), ("reply", Parameter::String(s)) => Reply(s.clone()), |
