namespace StarsAssistant.Services; public class Game { /// /// The base path in which all game files reside. /// public required string GamePath { get; set; } /// /// The base name without extensions of your game, inside the GamePath folder. /// All dependant files are resolved using this name. /// public required string BaseName { get; set; } /// /// Combine into the DatabaseName /// public string DatabaseFileName => Path.Combine(GamePath, $"{BaseName}.sqlite"); /// /// Search for Planet files using this pattern, will give you all pxx files. /// public string PlanetFileSearchPattern => $"{BaseName}.p*"; /// /// Get the name of a planet file for a given race. /// /// The race to load. /// Fully qualified file path. public string PlanetFileForRace (Model.Race r) => Path.Combine(GamePath, $"{BaseName}.p{r.PlayerFileId}"); }