From b9e90695091efa4dc82da5d045361f368dc07232 Mon Sep 17 00:00:00 2001 From: Joey Pollack Date: Wed, 15 May 2024 14:28:33 -0400 Subject: [PATCH] Renames game_plugin to hello_plugin to prepare for the real game_plugin --- src/{game_plugin => hello_plugin}/mod.rs | 4 ++-- src/main.rs | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) rename src/{game_plugin => hello_plugin}/mod.rs (96%) diff --git a/src/game_plugin/mod.rs b/src/hello_plugin/mod.rs similarity index 96% rename from src/game_plugin/mod.rs rename to src/hello_plugin/mod.rs index d33447f..b0eb2a7 100644 --- a/src/game_plugin/mod.rs +++ b/src/hello_plugin/mod.rs @@ -1,9 +1,9 @@ use bevy::prelude::*; -pub struct GamePlugin; +pub struct HelloPlugin; -impl Plugin for GamePlugin +impl Plugin for HelloPlugin { fn build(&self, app: &mut App) { diff --git a/src/main.rs b/src/main.rs index 6102632..4811c80 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,13 @@ use bevy::prelude::*; -mod game_plugin; - -use game_plugin::GamePlugin; +mod hello_plugin; +use hello_plugin::HelloPlugin; fn main() { App::new() - .add_plugins((DefaultPlugins, GamePlugin)) + .add_plugins((DefaultPlugins, HelloPlugin)) .run(); }