rust/hwphysics/src/common.rs
author Wuzzy <Wuzzy2@mail.ru>
Sat, 29 Jun 2019 23:12:21 +0200
changeset 15205 8705ee93f8b3
parent 15120 febccab419b1
child 15263 24828281c9c5
permissions -rw-r--r--
Display special icon when moving bee cursor over gray wrap area This is done as a reminder to remind the player the bee will attempt to fly through the edge first when placing the target in one of the two gray areas.

pub type GearId = u16;
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>;
}