📄 src/bunnies/mod.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
mod bunny;
mod locator;

use bevy::app::App;

use crate::bunnies::{bunny::add_bunny_systems, locator::add_locator};

pub trait BunnySystems {
    fn add_bunny_systems(&mut self) -> &mut Self;
}

impl BunnySystems for App {
    fn add_bunny_systems(&mut self) -> &mut Self {
        add_bunny_systems(self);
        add_locator(self)
    }
}