Skip to main content

engine_version

Function engine_version 

Source
pub fn engine_version<'db>(
    db: &'db dyn Db,
    config: ProjectConfig,
) -> Option<(u32, u32)>
Expand description

The Godot engine (major, minor) declared by project.godot’s [application] config/features, or None if unspecified. Keyed on ProjectConfig alone (MEDIUM durability), so it backdates across .gd body edits — the same cross-file firewall as autoload_registry.

Phase-5 plumbing: the value is exposed for engine-API-model selection, but only ONE engine model is bundled today (gdscript_api::GODOT_VERSION), so it is currently informational. Phase 6 (multi-version bundling via the Godot-sync job) will use it to pick the matching ApiInput, snapping to the nearest bundled minor and defaulting to the newest when absent.