diff options
author | 2024-12-24 00:54:31 -0500 | |
---|---|---|
committer | 2024-12-24 00:54:31 -0500 | |
commit | a1e9304dc31980703446bdb33246e314bafd3b15 (patch) | |
tree | 47c9dd32398a6d84050f39fac17d52d0a5d9ad4e /src/watcher.rs | |
parent | f3a7c2139cb3f9074d28dd99fa1bbd10d752547e (diff) |
Switched to bevy_mod_scripting, bevy 0.15 updatev0.4.0
Diffstat (limited to 'src/watcher.rs')
-rw-r--r-- | src/watcher.rs | 14 |
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( } } } - |