24 lines
657 B
Rust
24 lines
657 B
Rust
use bevy::app::Plugin;
|
|
use guardian_commands::AddConsoleCommand;
|
|
|
|
mod bogeydope;
|
|
mod cleartripwire;
|
|
mod radiocheck;
|
|
mod tripwire;
|
|
|
|
use bogeydope::*;
|
|
use cleartripwire::*;
|
|
use radiocheck::*;
|
|
use tripwire::*;
|
|
pub struct CommandsPlugin;
|
|
|
|
impl Plugin for CommandsPlugin {
|
|
fn build(&self, app: &mut bevy::prelude::App) {
|
|
app.add_plugins(guardian_commands::CommandsPlugin);
|
|
app.add_console_command::<BogeyDope, _>(bogey_dope);
|
|
app.add_console_command::<RadioCheck, _>(radio_check);
|
|
app.add_console_command::<TripwireCommand, _>(set_tripwire);
|
|
app.add_console_command::<ClearTripwireCommand, _>(clear_tripwire);
|
|
}
|
|
}
|