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::f64::consts::PI as PI64;
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
|
|
||||||
pub struct CommandsPlugin;
|
pub struct CmdPlugin;
|
||||||
impl Plugin for CommandsPlugin {
|
impl Plugin for CmdPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_systems(Startup, load_defs);
|
app.add_systems(Startup, load_defs);
|
||||||
app.add_systems(Update, spawn_entities);
|
app.add_systems(Update, spawn_entities);
|
|
@ -15,7 +15,7 @@ mod actor;
|
||||||
mod audio;
|
mod audio;
|
||||||
mod camera;
|
mod camera;
|
||||||
mod chat;
|
mod chat;
|
||||||
mod commands;
|
mod cmd;
|
||||||
mod hud;
|
mod hud;
|
||||||
mod load;
|
mod load;
|
||||||
mod menu;
|
mod menu;
|
||||||
|
@ -140,7 +140,7 @@ impl Plugin for OutFlyPlugin {
|
||||||
audio::AudioPlugin,
|
audio::AudioPlugin,
|
||||||
camera::CameraPlugin,
|
camera::CameraPlugin,
|
||||||
chat::ChatPlugin,
|
chat::ChatPlugin,
|
||||||
commands::CommandsPlugin,
|
cmd::CmdPlugin,
|
||||||
menu::MenuPlugin,
|
menu::MenuPlugin,
|
||||||
visual::VisualPlugin,
|
visual::VisualPlugin,
|
||||||
hud::HudPlugin,
|
hud::HudPlugin,
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// This module populates the world with stars and asteroids.
|
// This module populates the world with stars and asteroids.
|
||||||
|
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use crate::{actor, commands, hud, load, nature};
|
use crate::{actor, cmd, hud, load, nature};
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy::math::{DVec3, I64Vec3};
|
use bevy::math::{DVec3, I64Vec3};
|
||||||
use bevy::scene::{InstanceId, SceneInstance};
|
use bevy::scene::{InstanceId, SceneInstance};
|
||||||
|
@ -351,7 +351,7 @@ fn handle_despawn(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_respawn(
|
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