public RogueskivApp(RogueskivAppConfig appConfig) { AppConfig = appConfig; UxContext = new UxContext("Rogueskiv", AppConfig, imagesPath: "imgs", audiosPath: "audio", fontsPath: "fonts"); GameContext = new GameContext(appConfig.MaxGameStepsWithoutRender); LoadingScreenRenderer = new LoadingScreenRenderer(UxContext, AppConfig.FontFile); }
private static List <string> GetGameModes(RogueskivAppConfig rogueskivConfig) => (new DirectoryInfo(rogueskivConfig.GameModeFilesPath)).GetFiles("*.yaml") .Select(fileInfo => Path.GetFileNameWithoutExtension(fileInfo.Name)) .ToList();