aboutsummaryrefslogtreecommitdiff
path: root/src/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/events.rs b/src/events.rs
index 41a0db3..4d12f5b 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -17,8 +17,17 @@ pub enum DirworldNavigationEvent {
},
}
+#[derive(Debug, Event, Deref, DerefMut)]
+pub struct DirworldLeaveRoom(pub PathBuf);
+
+#[derive(Debug, Event, Deref, DerefMut)]
+pub struct DirworldEnterRoom(pub PathBuf);
+
+#[derive(Debug, Event, Deref, DerefMut)]
+pub struct DirworldChangeRoot(pub PathBuf);
+
#[derive(Event)]
pub struct DirworldSpawn {
pub entity: Entity,
pub data: Option<Vec<u8>>,
-} \ No newline at end of file
+}