From 16ac1444cefacfbf2f18f844bb01135ce726b26e Mon Sep 17 00:00:00 2001 From: Johannes Hendrik Gerard van der Weide Date: Thu, 11 Jan 2024 14:00:23 +0100 Subject: [PATCH] Player is now sorted into the objects folder --- src/main.rs | 6 +++--- src/objects.rs | 1 + src/{ => objects}/player.rs | 0 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/objects.rs rename src/{ => objects}/player.rs (100%) diff --git a/src/main.rs b/src/main.rs index 6520343..6653196 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ use bevy::prelude::*; -use player::PlayerPlugin; use serde::{Deserialize, Serialize}; use std::path::Path; -use crate::player::Player; +use crate::objects::player::Player; +use crate::objects::player::PlayerPlugin; use crate::levelgen::LevelgenPlugin; use crate::setup::config_loader::load_yaml_folder; @@ -23,8 +23,8 @@ pub struct InputVisual { pub input_direction: Vec2, } +pub mod objects; pub mod setup; -mod player; mod levelgen; fn main() { diff --git a/src/objects.rs b/src/objects.rs new file mode 100644 index 0000000..f28d7c2 --- /dev/null +++ b/src/objects.rs @@ -0,0 +1 @@ +pub mod player; diff --git a/src/player.rs b/src/objects/player.rs similarity index 100% rename from src/player.rs rename to src/objects/player.rs