This commit is contained in:
2024-09-17 09:19:27 -04:00
parent b156a33a54
commit 5ad54ca844
10 changed files with 315 additions and 86 deletions

View File

@@ -1,5 +1,6 @@
pub mod assets;
pub mod components;
#[cfg(debug_assertions)]
pub mod units_debug_plugin;
pub mod units_plugin;
pub mod components;
pub mod assets;
pub mod units_spacial_set;

View File

@@ -0,0 +1,23 @@
use bevy::prelude::Entity;
use quadtree_rs::Quadtree;
use shared::tags::Faction;
use world_generation::hex_utils::HexCoord;
use crate::components::UnitDomain;
pub struct UnitEntity {
pub entity: Entity,
pub domain: UnitDomain,
pub unitType: (),
pub faction: Faction,
}
pub struct UnitSpacialSet {
tree: Quadtree<i32, UnitEntity>,
}
impl UnitSpacialSet {
pub fn new() {
}
}