Settable zoom out code - incomplete prototype

This commit is contained in:
Mike Primm 2011-06-22 08:27:21 -05:00
parent a7c6a20dcc
commit bec1108fa1
9 changed files with 269 additions and 5 deletions

View file

@ -17,6 +17,7 @@ import org.dynmap.Log;
import org.dynmap.MapManager;
import org.dynmap.MapTile;
import org.dynmap.MapType;
import org.dynmap.MapType.ZoomStepDirection;
import org.dynmap.utils.MapChunkCache;
import org.json.simple.JSONObject;
import java.awt.image.DataBufferInt;
@ -326,6 +327,20 @@ public class KzedMap extends MapType {
return false;
}
public List<String> baseZoomFilePrefixes() {
ArrayList<String> s = new ArrayList<String>();
for(MapTileRenderer r : renderers) {
s.add("z" + r.getName());
if(r.isNightAndDayEnabled())
s.add("z" + r.getName() + "_day");
}
return s;
}
public int baseZoomFileStepSize() { return zTileWidth; }
public ZoomStepDirection zoomFileStepDirection() { return ZoomStepDirection.NEGATIVE_X_POSITIVE_Y; }
public String getName() {
return "KzedMap";
}