@Override
  public void runTest() {
    try {
      ResourceManager rmgr = new ResourceManager("rsrc");
      rmgr.initBundles(null, "config/resource/manager.properties", null);
      BundledTileSetRepository repo =
          new BundledTileSetRepository(
              rmgr, new ClientImageManager(rmgr, (Component) null), "tilesets");
      Iterator<TileSet> sets = repo.enumerateTileSets();
      while (sets.hasNext()) {
        sets.next();
        //                 System.out.println(sets.next());
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Exemple #2
0
 @Override
 public BufferedImage getImageResource(String path, boolean useFastIO) throws IOException {
   return ResourceManager.loadImage(getResourceFile(path), useFastIO);
 }