aboutsummaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-10-11 16:02:07 -0400
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-10-11 16:02:07 -0400
commit16c1574e400d73198713336e18975ff37ab78290 (patch)
treedb370db8e0caea99a9e6e3c501c7ea7e3b6dd708 /src/components.rs
parent462d6c5aaa2281bf875e04d5e2c3241a13256836 (diff)
Way too many changes (0.2)
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components.rs b/src/components.rs
index bea87f2..ea76185 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -2,10 +2,15 @@ use std::path::PathBuf;
use bevy::prelude::*;
+use crate::payload::DirworldEntityPayload;
+
/// 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);
+#[derive(Component, Clone, Debug)]
+pub struct DirworldEntity {
+ pub path: PathBuf,
+ pub payload: Option<DirworldEntityPayload>,
+}