add debug console initial implementation

This commit is contained in:
Schrottkatze 2025-06-17 20:50:46 +02:00
parent cf63dd6e41
commit cf05050c95
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
13 changed files with 709 additions and 51 deletions

13
src/game/debug.rs Normal file
View 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>();
}