diff options
| author | 2025-01-16 01:26:49 +0800 | |
|---|---|---|
| committer | 2025-01-16 01:26:49 +0800 | |
| commit | ee71943e7433059d9326867d5dd62385ab76ab58 (patch) | |
| tree | 3e96b1343f040212f855a33bcb4ca57dd1f618d4 /src/launcher/launcher.rs | |
| download | DropOut-ee71943e7433059d9326867d5dd62385ab76ab58.tar.gz DropOut-ee71943e7433059d9326867d5dd62385ab76ab58.zip | |
first commit
Diffstat (limited to 'src/launcher/launcher.rs')
| -rw-r--r-- | src/launcher/launcher.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/launcher/launcher.rs b/src/launcher/launcher.rs new file mode 100644 index 0000000..5ccf443 --- /dev/null +++ b/src/launcher/launcher.rs @@ -0,0 +1,15 @@ +pub struct Launcher { + pub config: crate::launcher::config::Config, +} + +impl Launcher { + pub fn new(config: crate::launcher::config::Config) -> Self { + Launcher { config } + } + + pub fn launch(&self) { + // 启动游戏的逻辑 + println!("启动游戏,用户名: {}", self.config.username); + println!("分辨率: {}x{}", self.config.resolution.0, self.config.resolution.1); + } +}
\ No newline at end of file |