aboutsummaryrefslogtreecommitdiff
path: root/src/watcher.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-24 00:54:31 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-24 00:54:31 -0500
commita1e9304dc31980703446bdb33246e314bafd3b15 (patch)
tree47c9dd32398a6d84050f39fac17d52d0a5d9ad4e /src/watcher.rs
parentf3a7c2139cb3f9074d28dd99fa1bbd10d752547e (diff)
Switched to bevy_mod_scripting, bevy 0.15 updatev0.4.0
Diffstat (limited to 'src/watcher.rs')
-rw-r--r--src/watcher.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/watcher.rs b/src/watcher.rs
index 8918dda..0e23c55 100644
--- a/src/watcher.rs
+++ b/src/watcher.rs
@@ -1,21 +1,16 @@
use std::{
- path::{Path, PathBuf},
+ path::PathBuf,
time::Duration,
};
use async_channel::{Receiver, Sender};
use bevy::{prelude::*, tasks::IoTaskPool};
-use notify::{
- event::{AccessKind, AccessMode, DataChange, MetadataKind, ModifyKind, RenameMode},
- EventKind, RecursiveMode, Watcher,
-};
+use notify::RecursiveMode;
use notify_debouncer_full::{new_debouncer, DebounceEventResult};
-use crate::{
- components::DirworldEntity,
- resources::{DirworldCache, DirworldCodecs, DirworldObservers, DirworldRootDir},
-};
+use crate::resources::DirworldRootDir;
+/// SystemSet for dirworld watcher systems
#[derive(SystemSet, Debug, Clone, PartialEq, Eq, Hash)]
pub struct DirworldWatcherSet;
@@ -94,4 +89,3 @@ pub fn update(
}
}
}
-