misc
This commit is contained in:
@@ -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;
|
||||
|
||||
23
game/units/src/units_spacial_set.rs
Normal file
23
game/units/src/units_spacial_set.rs
Normal 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() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user