mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-03 10:37:39 +00:00
make debug console top level
This commit is contained in:
parent
d79475ae2a
commit
4c24f67cd5
9 changed files with 111 additions and 68 deletions
|
@ -2,14 +2,15 @@
|
|||
use bevy::prelude::*;
|
||||
use bevy_skein::SkeinPlugin;
|
||||
use bevy_ui_text_input::TextInputPlugin;
|
||||
use clap::ValueEnum;
|
||||
|
||||
mod camera;
|
||||
mod cleanup;
|
||||
mod debugging;
|
||||
mod debug;
|
||||
mod game;
|
||||
mod menus;
|
||||
|
||||
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash, Reflect)]
|
||||
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash, Reflect, ValueEnum)]
|
||||
#[allow(unused)]
|
||||
enum AppState {
|
||||
#[default]
|
||||
|
@ -23,7 +24,7 @@ fn main() {
|
|||
.register_type::<TPCTarget>()
|
||||
.add_systems(Startup, camera::setup)
|
||||
.add_plugins((DefaultPlugins, TextInputPlugin))
|
||||
.add_plugins((game::plugin, menus::plugin, debugging::plugin))
|
||||
.add_plugins((game::plugin, menus::plugin, debug::plugin))
|
||||
.add_plugins(SkeinPlugin::default())
|
||||
.init_state::<AppState>()
|
||||
.register_type::<AppState>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue