aboutsummaryrefslogtreecommitdiff
path: root/src/preload/events.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-15 20:53:19 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-15 20:53:19 -0500
commit9e5f782eb228a6b050b01d5c4c82dba1399f7172 (patch)
tree2fe21e55d073b3ee5b31ef05c3e036bec71c2b03 /src/preload/events.rs
parenta1e9304dc31980703446bdb33246e314bafd3b15 (diff)
directory-aware navigation
Diffstat (limited to 'src/preload/events.rs')
-rw-r--r--src/preload/events.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/preload/events.rs b/src/preload/events.rs
index 7167d73..a6f9d16 100644
--- a/src/preload/events.rs
+++ b/src/preload/events.rs
@@ -1,3 +1,5 @@
+use std::path::PathBuf;
+
use bevy::prelude::*;
/// Event used to trigger preload callbacks after the asset file has been pre-processed to extract
@@ -10,3 +12,8 @@ pub struct DirworldPreload {
pub data: Option<Vec<u8>>,
}
+#[derive(Debug, Event, Clone)]
+pub struct DirworldPreloadBegin {
+ pub old_path: PathBuf,
+ pub path: PathBuf,
+}