From a1e9304dc31980703446bdb33246e314bafd3b15 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Tue, 24 Dec 2024 00:54:31 -0500 Subject: Switched to bevy_mod_scripting, bevy 0.15 update --- src/events.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/events.rs') diff --git a/src/events.rs b/src/events.rs index 2fa7f81..7932a67 100644 --- a/src/events.rs +++ b/src/events.rs @@ -17,17 +17,18 @@ pub enum DirworldNavigationEvent { }, } +/// Event called when leaving a room #[derive(Debug, Event, Deref, DerefMut, Clone)] pub struct DirworldLeaveRoom(pub PathBuf); +/// Event called when entering a room #[derive(Debug, Event, Deref, DerefMut, Clone)] pub struct DirworldEnterRoom(pub PathBuf); +/// Event called when changing the world root #[derive(Debug, Event, Deref, DerefMut, Clone)] pub struct DirworldChangeRoot(pub PathBuf); -#[derive(Event)] -pub struct DirworldSpawn { - pub entity: Entity, - pub data: Option>, -} +/// Event called to spawn a dirworld entities +#[derive(Event, Debug, Deref, DerefMut, Clone, Copy)] +pub struct DirworldSpawn(pub Entity); -- cgit v1.2.3