use bevy::prelude::*;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Component, Default, Reflect)]
#[reflect(Component)]
pub struct Ignores {
pub names: Vec<String>,
}
impl Ignores {
pub fn new(names: Vec<&str>) -> Self {
Self {
names: names.into_iter().map(|n| n.to_owned()).collect(),
}
}
pub fn single(name: &str) -> Self {
Self::new(vec![name])
}
}