Library with util methods for dmm
files.
Features:
- able to render
dmm
files into proper image - compare two maps to get difference between them
Library deployed to Maven Central and JCenter repositories.
<dependency>
<groupId>io.github.spair</groupId>
<artifactId>byond-dmm-util</artifactId>
<version>${last.version}</version>
</dependency>
compile 'io.github.spair:byond-dmm-util:${last.version}'
The main class you will use is Dmm
. To create it you should provide to it constructor DmmData
and Dme
objects.
The info how to get them could be found here and here.
Renders Dmm
object into BufferedImage
. Has ability to render specific region of map or apply object filter to exclude specific types from render result. For example:
DmmDrawer.drawMap(dmm, MapRegion.of(1, 5), FilterMode.IGNORE, "/area", "/turf")
Compares two Dmm
objects and returns list of DiffPoint
or MapRegion
with specific area of differences.
More could be found in JavaDoc.