Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 private static List <string> GetGameModes(RogueskivAppConfig rogueskivConfig)
 => (new DirectoryInfo(rogueskivConfig.GameModeFilesPath)).GetFiles("*.yaml")
 .Select(fileInfo => Path.GetFileNameWithoutExtension(fileInfo.Name))
 .ToList();