rust/hwphysics/src/common.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 22 Jul 2019 19:26:58 +0200
changeset 15288 22f2fd8a3d2c
parent 15284 24828281c9c5
child 15295 42b710b0f883
permissions -rw-r--r--
VideoRec: Stop prerecording when /lua activates

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>;
}