com.threerings.media.tile.bundle.tools
Class DirectoryTileSetBundler

java.lang.Object
  extended by com.threerings.media.tile.bundle.tools.TileSetBundler
      extended by com.threerings.media.tile.bundle.tools.DirectoryTileSetBundler

public class DirectoryTileSetBundler
extends TileSetBundler


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.media.tile.bundle.tools.TileSetBundler
TileSetBundler.Mapping
 
Field Summary
 
Fields inherited from class com.threerings.media.tile.bundle.tools.TileSetBundler
_digester, _keepRawPngs, _uncompressed
 
Constructor Summary
DirectoryTileSetBundler(File configFile)
           
DirectoryTileSetBundler(String configPath)
           
 
Method Summary
 boolean createBundle(File target, TileSetBundle bundle, ImageProvider improv, String imageBase, long newestMod)
          Finish the creation of a tileset bundle jar file.
protected  boolean skipIfTargetNewer()
          Returns whether we should skip updating the bundle if the target is newer than any component.
 
Methods inherited from class com.threerings.media.tile.bundle.tools.TileSetBundler
adjustImagePath, createBundle, createBundle, createBundleJar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryTileSetBundler

public DirectoryTileSetBundler(File configFile)
                        throws IOException
Throws:
IOException

DirectoryTileSetBundler

public DirectoryTileSetBundler(String configPath)
                        throws IOException
Throws:
IOException
Method Detail

createBundle

public boolean createBundle(File target,
                            TileSetBundle bundle,
                            ImageProvider improv,
                            String imageBase,
                            long newestMod)
                     throws IOException
Description copied from class: TileSetBundler
Finish the creation of a tileset bundle jar file.

Overrides:
createBundle in class TileSetBundler
Parameters:
target - the tileset bundle file that will be created.
bundle - contains the tilesets we'd like to save out to the bundle.
improv - the image provider.
imageBase - the base directory for getting images for non
newestMod - the most recent modification to any part of the bundle. By default we ignore this since we normally duck out if we're up to date. ObjectTileSet tilesets.
Throws:
IOException

skipIfTargetNewer

protected boolean skipIfTargetNewer()
Description copied from class: TileSetBundler
Returns whether we should skip updating the bundle if the target is newer than any component.

Overrides:
skipIfTargetNewer in class TileSetBundler