From ada1c4571a9ba43b15027f126fada55e73901a11 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 21 Feb 2020 15:03:43 +0100 Subject: create World for multiroom support --- src/worldloader.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/worldloader.rs') diff --git a/src/worldloader.rs b/src/worldloader.rs index 6660f9d..8745bf4 100644 --- a/src/worldloader.rs +++ b/src/worldloader.rs @@ -11,15 +11,13 @@ use crate::{ pub struct WorldLoader { - pub directory: PathBuf, - pub default_room: RoomId + pub directory: PathBuf } impl WorldLoader { - pub fn new(path: PathBuf, default_room: RoomId) -> Self { + pub fn new(path: PathBuf) -> Self { Self { - directory: path, - default_room + directory: path } } -- cgit