INNER CODE UNIT · Rust

default

CleanCut/rusty_engine · src/game.rs:263

    fn default() -> Self {
        Self {
            app: App::new(),
            engine: Engine::default(),
            logic_functions: LogicFuncVec(vec![]),
            window: Window {
                title: "Rusty Engine".into(),
                ..Default::default()
            },
        }
    }
}

impl<S: Resource + Send + Sync + 'static> Game<S> {
    /// Create an new, empty [`Game`] with an empty [`Engine`]
    pub fn new() -> Self {
        if std::fs::read_dir("assets").is_err() {
            println!(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…