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/componentwrapper.rs | |
| parent | 13b53f3e89bcd6d33a534403162d1b09502bec70 (diff) | |
turned sprite, playerid and roomid into tuple structs
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index b952657..96fcba2 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -152,9 +152,9 @@ components!(all: Inventory () {panic!("inventory from parameters not implemented")}; Health (health: i64, maxhealth: i64); Serialise () {panic!("serialise from parameters not implemented")}; - RoomExit (destination: String, dest_pos: String) { + RoomExit (destination: RoomId, dest_pos: String) { RoomExit { - destination: RoomId::from_str(&destination), + destination, dest_pos: if dest_pos.is_empty() { RoomPos::Unknown } else { |
