From 9eb3a9da97e53cee14e585e027badb3783b8e25e Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 24 Sep 2020 22:18:30 +0200 Subject: turned sprite, playerid and roomid into tuple structs --- src/componentwrapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/componentwrapper.rs') 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 { -- cgit