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

View file

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

View file

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