pathfinding wip

This commit is contained in:
2024-10-04 22:49:49 -04:00
parent 5adfbd5de5
commit 5e7ab32138
15 changed files with 287 additions and 125 deletions

View File

@@ -1,5 +1,6 @@
use bevy::{ecs::world::CommandQueue, prelude::*, tasks::Task};
use serde::{Deserialize, Serialize};
use world_generation::hex_utils::HexCoord;
#[derive(Component, Debug)]
pub struct Unit;
@@ -19,7 +20,7 @@ pub enum UnitDomain {
}
#[derive(Component, Debug)]
pub struct Target(pub Vec3);
pub struct Target(pub HexCoord);
#[derive(Component, Debug)]
pub struct Path(pub Vec<Vec3>, pub usize);