2023-09-08 04:46:27 +00:00
|
|
|
pub mod game;
|
|
|
|
pub mod render;
|
|
|
|
pub mod input_event;
|
|
|
|
pub mod resources;
|
|
|
|
pub mod ecs;
|
|
|
|
pub mod math;
|
|
|
|
pub mod input;
|
2023-09-09 14:51:58 +00:00
|
|
|
pub mod castable_any;
|
|
|
|
pub mod plugin;
|
2023-09-10 04:38:54 +00:00
|
|
|
|
|
|
|
use plugin::Plugin;
|
|
|
|
|
|
|
|
use crate::input::InputPlugin;
|
|
|
|
|
|
|
|
/// Default plugins of Lyra. Make sure to have these added to the Game first
|
|
|
|
#[derive(Default)]
|
|
|
|
pub struct DefaultPlugins;
|
|
|
|
|
|
|
|
impl Plugin for DefaultPlugins {
|
|
|
|
fn setup(&self, game: &mut game::Game) {
|
|
|
|
// setup input
|
|
|
|
InputPlugin::default().setup(game);
|
|
|
|
}
|
|
|
|
}
|