rust/hwphysics/src/common.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 25 Jul 2019 18:40:06 +0200
changeset 15269 96fbf9bb960a
parent 15263 24828281c9c5
child 15274 42b710b0f883
permissions -rw-r--r--
Mutant: Remove excess teams if a clan has more than one team

pub type GearId = std::num::NonZeroU16;
pub trait GearData {}

pub trait GearDataProcessor<T: GearData> {
    fn add(&mut self, gear_id: GearId, gear_data: T);
}

pub trait GearDataAggregator<T: GearData> {
    fn find_processor(&mut self) -> &mut GearDataProcessor<T>;
}