aboutsummaryrefslogtreecommitdiff
path: root/src/payload/components
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/payload/components
parenta1e9304dc31980703446bdb33246e314bafd3b15 (diff)
directory-aware navigation
Diffstat (limited to 'src/payload/components')
-rw-r--r--src/payload/components/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/payload/components/mod.rs b/src/payload/components/mod.rs
index fc24ac1..2812d73 100644
--- a/src/payload/components/mod.rs
+++ b/src/payload/components/mod.rs
@@ -9,6 +9,11 @@ use yarnspinner::core::YarnValue;
#[derive(Serialize, Deserialize, Clone, Default, Deref, DerefMut, Debug)]
pub struct Transform(pub bevy::prelude::Transform);
+/// Transform for the destination of a door
+/// Used to determine where to spawn ".." door and player when entering a room
+#[derive(Serialize, Deserialize, Clone, Default, Deref, DerefMut, Debug)]
+pub struct DoorDestination(pub bevy::prelude::Transform);
+
/// Payload component that represent's an entity's name
#[derive(Serialize, Deserialize, Clone, Default, Deref, DerefMut, Debug)]
pub struct Name(pub String);