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

@@ -60,7 +60,7 @@ pub fn get_tile_count(radius: usize) -> usize {
return 1 + 3 * (radius + 1) * radius;
}
#[derive(Default, Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize)]
#[derive(Default, Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub struct HexCoord {
pub hex: IVec3,
}