From 3b540b290dbc030e3b8de3eaf10048620ee5915d Mon Sep 17 00:00:00 2001 From: yuni Date: Wed, 12 Jun 2024 00:57:29 +0200 Subject: [PATCH] debug key now dumps all game variables to console --- src/game.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.rs b/src/game.rs index 4cb4bdd..e324840 100644 --- a/src/game.rs +++ b/src/game.rs @@ -402,6 +402,7 @@ fn debug( Assets>, >, mut achievement_tracker: ResMut, + vars: Res, materials: Query<(Entity, Option<&Name>, &Handle)>, ) { if settings.dev_mode && keyboard_input.just_pressed(KeyCode::KeyP) { @@ -415,6 +416,7 @@ fn debug( } if settings.dev_mode && keyboard_input.just_pressed(KeyCode::KeyN) { achievement_tracker.achieve_all(); + dbg!(&vars); } }