aboutsummaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs
index 69a5cde..bea87f2 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -1,5 +1,11 @@
+use std::path::PathBuf;
+
use bevy::prelude::*;
/// A tooltip on an object, which can be displayed.
#[derive(Component)]
pub struct Tooltip(pub String);
+
+/// A marker component for entities spawned by dirworld handlers, i.e. they should be removed when the room changes.
+#[derive(Component)]
+pub struct DirworldEntity(pub PathBuf);