rename commands.rs to cmd.rs (in preparation for the next commit)
This commit is contained in:
parent
9095a93a82
commit
d37b90be15
|
@ -22,8 +22,8 @@ use std::f32::consts::PI;
|
|||
use std::f64::consts::PI as PI64;
|
||||
use std::time::SystemTime;
|
||||
|
||||
pub struct CommandsPlugin;
|
||||
impl Plugin for CommandsPlugin {
|
||||
pub struct CmdPlugin;
|
||||
impl Plugin for CmdPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Startup, load_defs);
|
||||
app.add_systems(Update, spawn_entities);
|
|
@ -15,7 +15,7 @@ mod actor;
|
|||
mod audio;
|
||||
mod camera;
|
||||
mod chat;
|
||||
mod commands;
|
||||
mod cmd;
|
||||
mod hud;
|
||||
mod load;
|
||||
mod menu;
|
||||
|
@ -140,7 +140,7 @@ impl Plugin for OutFlyPlugin {
|
|||
audio::AudioPlugin,
|
||||
camera::CameraPlugin,
|
||||
chat::ChatPlugin,
|
||||
commands::CommandsPlugin,
|
||||
cmd::CmdPlugin,
|
||||
menu::MenuPlugin,
|
||||
visual::VisualPlugin,
|
||||
hud::HudPlugin,
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// This module populates the world with stars and asteroids.
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::{actor, commands, hud, load, nature};
|
||||
use crate::{actor, cmd, hud, load, nature};
|
||||
use bevy::prelude::*;
|
||||
use bevy::math::{DVec3, I64Vec3};
|
||||
use bevy::scene::{InstanceId, SceneInstance};
|
||||
|
@ -351,7 +351,7 @@ fn handle_despawn(
|
|||
}
|
||||
|
||||
fn handle_respawn(
|
||||
ew_spawn: EventWriter<commands::SpawnEvent>,
|
||||
ew_spawn: EventWriter<cmd::SpawnEvent>,
|
||||
) {
|
||||
commands::load_defs(ew_spawn);
|
||||
cmd::load_defs(ew_spawn);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue