aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/launcher/launcher.rs
blob: 5ccf443762fcb44aebdfe4503cbc58a6c245851f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
    }
}