basic core building
This commit is contained in:
parent
f5d022d1d0
commit
af45237701
11 changed files with 146 additions and 11 deletions
11
crates/building/Cargo.toml
Normal file
11
crates/building/Cargo.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "building"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
bevy = { workspace = true }
|
||||
combat = { path = "../combat" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
16
crates/building/src/lib.rs
Normal file
16
crates/building/src/lib.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//bevy system signatures often violate these rules
|
||||
#![allow(clippy::type_complexity)]
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use bevy::prelude::*;
|
||||
use combat::Health;
|
||||
|
||||
pub struct BuildingPlugin;
|
||||
|
||||
impl Plugin for BuildingPlugin {
|
||||
fn build(&self, _app: &mut App) {}
|
||||
}
|
||||
|
||||
#[derive(Component, Default)]
|
||||
#[require(Health)]
|
||||
pub struct Building;
|
||||
Loading…
Add table
Add a link
Reference in a new issue