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/fromtoparameter.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/fromtoparameter.rs') diff --git a/src/fromtoparameter.rs b/src/fromtoparameter.rs index 75912ae..8d169d0 100644 --- a/src/fromtoparameter.rs +++ b/src/fromtoparameter.rs @@ -7,7 +7,8 @@ use crate::{ Pos, PlayerId, Sprite, - ItemId + ItemId, + RoomId }; pub trait FromToParameter: Sized { @@ -78,9 +79,10 @@ tofrom!(String: String); tofrom!(Pos: Pos); tofrom!(Template: Template); -tofrom!(PlayerId{name: String}); -tofrom!(Sprite{name: String}); +tofrom!(PlayerId(String)); +tofrom!(Sprite(String)); tofrom!(ItemId(String)); +tofrom!(RoomId(String)); impl FromToParameter for Vec where -- cgit