resource production via graveyard, workers, and selectable buildlings

This commit is contained in:
Jim 2025-08-31 22:26:07 -04:00
parent 87fcc35a49
commit 921947c131
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
20 changed files with 364 additions and 24 deletions

View file

@ -9,6 +9,7 @@ avian3d = { workspace = true }
combat = { path = "../combat" }
state = { path = "../state" }
resources = { path = "../resources" }
input = { path = "../input" }
[lints]
workspace = true

View file

@ -9,6 +9,7 @@ use bevy::{
prelude::*,
};
use combat::{Health, Team};
use input::Selectable;
use resources::{Cost, Resources};
use state::GameSystemSet;
@ -24,7 +25,7 @@ impl Plugin for BuildingPlugin {
}
#[derive(Component)]
#[require(Health, Team::Core, PhysicsPickable)]
#[require(Health, Team::Core, PhysicsPickable, Selectable)]
pub struct Building {
pub level: u32,
pub info: Entity,