aboutsummaryrefslogtreecommitdiff
path: root/src/resources.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources.rs')
-rw-r--r--src/resources.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resources.rs b/src/resources.rs
index bf0c072..f916deb 100644
--- a/src/resources.rs
+++ b/src/resources.rs
@@ -12,16 +12,19 @@ pub struct DirworldRootDir(pub Option<PathBuf>);
/// Current directory of the world
#[derive(Resource, Default)]
-pub struct DirworldCurrentDir{
+pub struct DirworldCurrentDir {
/// Path of current directory
pub path: PathBuf,
/// Payload (contents of .door file) in current directory, if present
pub payload: Option<DirworldEntityPayload>,
}
+#[derive(Resource, Deref, DerefMut, Default, Debug)]
+pub struct DirworldLastDir(pub PathBuf);
+
/// Running background tasks
#[derive(Default, Resource, Deref, DerefMut)]
-pub struct DirworldTasks(pub BTreeMap<String, Task<Option<CommandQueue>>>);
+pub struct DirworldTasks(pub BTreeMap<String, Option<Task<Option<CommandQueue>>>>);
/// A map between file types and their corresponding preload/spawn callback observers
#[derive(Debug, Default, Resource, Deref, DerefMut)]
@@ -39,4 +42,3 @@ pub enum EntryType {
/// A folder
Folder,
}
-