use std::path::PathBuf; use bevy::prelude::*; /// 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, Clone)] pub struct DirworldEnterRoom { pub exited: PathBuf, pub entered: PathBuf, } /// Event called when changing the world root #[derive(Debug, Event, Deref, DerefMut, Clone)] pub struct DirworldChangeRoot(pub PathBuf); #[derive(Debug, Event, Clone)] pub struct DirworldNavigationComplete { pub from: PathBuf, pub to: PathBuf, } /// Event called to spawn a dirworld entities #[derive(Event, Debug, Deref, DerefMut, Clone, Copy)] pub struct DirworldSpawn(pub Entity);