using Godot;
namespace Mr.BrickAdventures.scripts.Resources;
///
/// One authored Level: its stable id, its display name key, and the scene to load.
///
///
///
/// is what Playthroughs and Best Times reference, so it must never change once a
/// build has shipped — unlike position in a list, which is what the old
/// GameManager.LevelScenes array used and which every save depended on.
///
///
/// The scene is a rather than a path string. The previous
/// ScenePath field was never read by anything and had rotted: forest_1.tres pointed at
/// res://scenes/level_forest_5.tscn, which does not exist. An exported reference is tracked by
/// the editor and cannot drift.
///
///
[GlobalClass]
public partial class LevelResource : Resource
{
/// Stable identity. Referenced by saves — do not change after shipping.
[Export]
public string Id { get; set; } = string.Empty;
/// Translation key for the player-facing name. Labels auto-translate it.
[Export]
public string LevelName { get; set; } = string.Empty;
[Export]
public PackedScene Scene { get; set; }
}