rename commands.rs to cmd.rs (in preparation for the next commit)

This commit is contained in:
yuni 2024-05-12 23:37:03 +02:00
parent 9095a93a82
commit d37b90be15
3 changed files with 7 additions and 7 deletions

View file

@ -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);

View file

@ -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,

View file

@ -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);
}