示例#1
0
 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);
 }
示例#2
0
文件: Program.cs 项目: Crul/Rogueskiv
 private static List <string> GetGameModes(RogueskivAppConfig rogueskivConfig)
 => (new DirectoryInfo(rogueskivConfig.GameModeFilesPath)).GetFiles("*.yaml")
 .Select(fileInfo => Path.GetFileNameWithoutExtension(fileInfo.Name))
 .ToList();