From d37b90be155b02384ccad0dc52da3803c0662b63 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 12 May 2024 23:37:03 +0200 Subject: [PATCH] rename commands.rs to cmd.rs (in preparation for the next commit) --- src/{commands.rs => cmd.rs} | 4 ++-- src/main.rs | 4 ++-- src/world.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/{commands.rs => cmd.rs} (99%) diff --git a/src/commands.rs b/src/cmd.rs similarity index 99% rename from src/commands.rs rename to src/cmd.rs index 2924072..b8b01ee 100644 --- a/src/commands.rs +++ b/src/cmd.rs @@ -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); diff --git a/src/main.rs b/src/main.rs index edf8163..85f50bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, diff --git a/src/world.rs b/src/world.rs index 6a2db0d..e852840 100644 --- a/src/world.rs +++ b/src/world.rs @@ -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, + ew_spawn: EventWriter, ) { - commands::load_defs(ew_spawn); + cmd::load_defs(ew_spawn); }