This commit is contained in:
LorrensP-2158466
2025-04-05 23:52:25 +02:00
parent 153a40cb73
commit be1caf37c1
6 changed files with 6501 additions and 38 deletions

21
src/player/toolbar.rs Normal file
View File

@@ -0,0 +1,21 @@
use bevy::prelude::*;
use std::default::Default;
use crate::GameState;
use super::Player;
#[derive(Component, Default, Debug)]
pub struct Item(Option<Entity>);
impl Item {
pub fn none() -> Self {
Default::default()
}
}
pub fn plugin(app: &mut App) {
app.add_systems(Update, show_toolbar.run_if(in_state(GameState::Playing)));
}
fn show_toolbar(player_tool_query: Query<&Item, With<Player>>) {}