M sdbclient/src/main.rs => sdbclient/src/main.rs +2 -2
@@ 15,7 15,7 @@ use bevy_egui::EguiPlugin;
use bevy_inspector_egui::WorldInspectorPlugin;
mod menu;
-mod splash;
+mod plugins;
mod util;
/// Used to control the state of the game
@@ 117,7 117,7 @@ fn main() {
app.add_startup_system(setup).add_state(GameState::Splash);
- app.add_plugin(splash::SplashPlugin)
+ app.add_plugin(plugins::splash::SplashPlugin)
.add_plugin(menu::MenuPlugin);
app.run();
A sdbclient/src/plugins/mod.rs => sdbclient/src/plugins/mod.rs +9 -0
@@ 0,0 1,9 @@
+/*
+ * This file is part of sdbclient
+ * Copyright (C) 2022 Jonni Liljamo <jonni@liljamo.com>
+ *
+ * Licensed under GPL-3.0-only.
+ * See LICENSE for licensing information.
+ */
+
+pub mod splash;
R sdbclient/src/splash/mod.rs => sdbclient/src/plugins/splash/mod.rs +1 -1
@@ 11,7 11,7 @@ use bevy::{
ui::{JustifyContent, Size, Style, Val},
};
-use super::{despawn_screen, GameState};
+use crate::{despawn_screen, GameState};
/// This plugin will display a splsh logo on startup
pub struct SplashPlugin;