diff options
author | 2024-12-24 00:54:31 -0500 | |
---|---|---|
committer | 2024-12-24 00:54:31 -0500 | |
commit | a1e9304dc31980703446bdb33246e314bafd3b15 (patch) | |
tree | 47c9dd32398a6d84050f39fac17d52d0a5d9ad4e /src/components.rs | |
parent | f3a7c2139cb3f9074d28dd99fa1bbd10d752547e (diff) |
Switched to bevy_mod_scripting, bevy 0.15 updatev0.4.0
Diffstat (limited to 'src/components.rs')
-rw-r--r-- | src/components.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs index 8bb2bff..0a52560 100644 --- a/src/components.rs +++ b/src/components.rs @@ -11,9 +11,12 @@ 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, Clone, Debug)] pub struct DirworldEntity { + /// Path on filesystem corresponding to this entity pub path: PathBuf, + /// Extracted payload if present pub payload: Option<DirworldEntityPayload>, } +/// Marker component that prevents an entity from despawning on room change #[derive(Debug, Component)] pub struct Persist; |