use crate::shared::*; #[derive(Component, Clone, Copy, PartialEq, Eq)] pub enum Faction { Red, Blue, } impl Faction { pub fn to_color(self) -> Color { match self { Faction::Red => Color::RED, Faction::Blue => Color::BLUE, } } }