mod.rs 374 Bytes
Newer Older
1
pub mod bottle_angel;
Rahix's avatar
Rahix committed
2
3
4
5
6
7
8
9
10
11
12
13
mod definitions;

pub use definitions::AngelShift;
pub use definitions::AngelShiftImpl;
pub use definitions::ShiftMetadata;

pub fn generate_random_shift(rng: &mut impl rand::Rng) -> AngelShift {
    AngelShift(match rng.gen_range(0usize, 1) {
        0 => Box::new(bottle_angel::BottleAngelShift::generate(rng)),
        _ => unreachable!(),
    })
}