rust/hwphysics/src/common.rs
author Wuzzy <Wuzzy2@mail.ru>
Wed, 19 Jun 2019 20:37:02 +0200
changeset 15201 061a3085d6d8
parent 15141 febccab419b1
child 15284 24828281c9c5
permissions -rw-r--r--
Make flames ignore bouncy world edge Rationale: Flame speed heavily relies on wind and cannot be reasonably reversed. The rationale is similar as for gtPoisonCloud.

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