1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! This module translate user input (e.g. mouse events, keyboard presses) into
//! actions.

use bevy::prelude::*;
pub(crate) use executor::{
    CommandsSet, DeliveryLocationSelectedEvent, GroupAttackEvent, SendSelectedEvent,
};

use self::{executor::ExecutorPlugin, handlers::HandlersPlugin};

mod executor;
mod handlers;
mod keyboard;

pub(crate) struct CommandsPlugin;

impl Plugin for CommandsPlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins((HandlersPlugin, ExecutorPlugin));
    }
}