aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/launcher/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/launcher/mod.rs')
-rw-r--r--src/launcher/mod.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/launcher/mod.rs b/src/launcher/mod.rs
new file mode 100644
index 0000000..0359d3e
--- /dev/null
+++ b/src/launcher/mod.rs
@@ -0,0 +1,19 @@
+pub mod config;
+pub mod launcher;
+
+pub use config::Config;
+pub use launcher::Launcher;
+
+pub fn start() {
+ // 启动器的代码
+ println!("启动器启动中...");
+
+ // 创建配置
+ let config = Config::new("玩家", (1920, 1080));
+
+ // 创建启动器
+ let launcher = Launcher::new(config);
+
+ // 启动游戏
+ launcher.launch();
+} \ No newline at end of file