use crate::{comp, storage, Archetype};
pub(crate) struct Flag(pub(crate) ());
impl super::Referrer for Flag {
fn visit_type(arg: &mut super::referrer::VisitTypeArg) { arg.mark::<Self>(); }
fn visit_mut<V: super::referrer::VisitMutArg>(&mut self, _: &mut V) {}
}
impl<A: Archetype> comp::SimpleOrIsotope<A> for Flag {
const PRESENCE: comp::Presence = comp::Presence::Optional;
const INIT_STRATEGY: comp::InitStrategy<A, Self> = comp::InitStrategy::None;
type Storage = storage::Vec<A::RawEntity, Self>;
}
impl<A: Archetype> comp::Simple<A> for Flag {
const IS_FINALIZER: bool = false;
}