mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-02 09:37:40 +00:00
add debug console initial implementation
This commit is contained in:
parent
cf63dd6e41
commit
cf05050c95
13 changed files with 709 additions and 51 deletions
13
src/game/debug.rs
Normal file
13
src/game/debug.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
mod console;
|
||||
|
||||
#[derive(Event)]
|
||||
enum DebugEvent {
|
||||
CloseDebugConsole,
|
||||
PrintToConsole(String),
|
||||
}
|
||||
|
||||
pub(super) fn plugin(app: &mut App) {
|
||||
app.add_plugins(console::plugin).add_event::<DebugEvent>();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue