units testing

This commit is contained in:
2024-09-10 20:41:33 -04:00
parent 805fb3feb6
commit b156a33a54
15 changed files with 254 additions and 131 deletions

View File

@@ -4,9 +4,19 @@ use serde::{Deserialize, Serialize};
#[derive(Component, Debug)]
pub struct Unit;
#[derive(Component, Serialize, Deserialize, Debug, Clone, Copy)]
#[derive(Component, Debug)]
pub struct AirUnit;
#[derive(Component, Debug)]
pub struct LandUnit;
#[derive(Component, Debug)]
pub struct NavalUnit;
#[derive(Serialize, Deserialize, Debug, Clone, Copy)]
pub enum UnitDomain {
Land,
Air,
Navy,
Naval,
}
#[derive(Component, Debug)]
pub struct Target(pub Vec3);