Пример #1
0
  /** Loads data that may be dependent on the pre-load */
  public static void PostLoad() {
    DataLoader.ReadAndLoadAll(
        DataLoader.PATH_ENTITIES, VictusLudusGame.resources.getEntityHash(), new EntityReader());

    DataLoader.SimpleReadAndLoad(
        DataLoader.STAR_NAMES,
        VictusLudusGame.resources.getCelestialStarNameArray(),
        new LineReader());
    DataLoader.SimpleReadAndLoad(
        DataLoader.GALAXY_NAMES,
        VictusLudusGame.resources.getCelestialGalaxyNameArray(),
        new LineReader());
    DataLoader.ReadStarColorChart(
        DataLoader.STAR_COLOR_CHART, VictusLudusGame.resources.getStarColorMap());
  }
Пример #2
0
  /** Pre-loads a bunch of data */
  public static void PreLoad() {
    DataLoader.ReadAndLoadAll(
        DataLoader.PATH_FONTS, VictusLudusGame.resources.getFontHash(), new FontReader());

    DataLoader.LoadSpriteSheets(DataLoader.PATH_SPRITE_SHEETS_COSMOS);
    DataLoader.LoadSpriteSheets(DataLoader.PATH_SPRITE_SHEETS_ENTITIES);
    DataLoader.LoadSpriteSheets(DataLoader.PATH_SPRITE_SHEETS_GUI);
    DataLoader.LoadSpriteSheets(DataLoader.PATH_SPRITE_SHEETS_TILES);

    DataLoader.LoadSounds(DataLoader.PATH_SOUNDS);
    DataLoader.LoadMusic(DataLoader.PATH_MUSIC);

    DataLoader.Load3DMeshes(DataLoader.PATH_3D);
  }