diff options
| author | troido <troido@protonmail.com> | 2020-02-21 15:03:43 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-21 15:03:43 +0100 |
| commit | ada1c4571a9ba43b15027f126fada55e73901a11 (patch) | |
| tree | 30b49fd4a4ad7460d439aa12e805fcddf33bcad9 /src/worldloader.rs | |
| parent | d225dc6349670926a4adea932f0ea77b7af5acbc (diff) | |
create World for multiroom support
Diffstat (limited to 'src/worldloader.rs')
| -rw-r--r-- | src/worldloader.rs | 8 |
1 files changed, 3 insertions, 5 deletions
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 } } |
