mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2025-10-21 19:20:34 +00:00
29 lines
506 B
Rust
29 lines
506 B
Rust
use super::components::MazeConfig;
|
|
use bevy::prelude::*;
|
|
|
|
#[derive(Debug, Reflect, Event)]
|
|
pub struct SpawnMaze {
|
|
pub floor: u8,
|
|
pub config: MazeConfig,
|
|
}
|
|
|
|
#[derive(Debug, Reflect, Event)]
|
|
pub struct RespawnMaze {
|
|
pub floor: u8,
|
|
pub config: MazeConfig,
|
|
}
|
|
|
|
#[derive(Debug, Reflect, Event)]
|
|
pub struct DespawnMaze {
|
|
pub floor: u8,
|
|
}
|
|
|
|
impl Default for SpawnMaze {
|
|
fn default() -> Self {
|
|
Self {
|
|
floor: 1,
|
|
config: MazeConfig::default(),
|
|
}
|
|
}
|
|
}
|