From 16c1574e400d73198713336e18975ff37ab78290 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 11 Oct 2024 16:02:07 -0400 Subject: Way too many changes (0.2) --- src/components.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/components.rs') 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, +} -- cgit v1.2.3