use bevy states

despawn plugin
buiding plugin
This commit is contained in:
2024-06-05 22:00:00 -04:00
parent c31c2fb908
commit 05f9fa3143
20 changed files with 296 additions and 54 deletions

View File

@@ -107,7 +107,7 @@ impl Map {
pub fn hex_select<OP, Ret>(&self, center: &HexCoord, radius: usize, include_center: bool, op: OP) -> Vec<Ret>
where
OP: Fn(&HexCoord, f32, usize) -> Ret + Sync + Send,
OP: (Fn(&HexCoord, f32, usize) -> Ret) + Sync + Send,
{
assert!(radius != 0, "Radius cannot be zero");
@@ -140,7 +140,7 @@ impl Map {
op: OP,
) -> Vec<Ret>
where
OP: Fn(&HexCoord, &mut f32, usize) -> Ret + Sync + Send,
OP: (Fn(&HexCoord, &mut f32, usize) -> Ret) + Sync + Send,
{
assert!(radius != 0, "Radius cannot be zero");