io.github.spair:byond-dmm-util

Library to parse and render DMM files.

License

License

GroupId

GroupId

io.github.spair
ArtifactId

ArtifactId

byond-dmm-util
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

io.github.spair:byond-dmm-util
Library to parse and render DMM files.
Project URL

Project URL

https://spair.github.io/byond-dmm-util
Source Code Management

Source Code Management

https://github.com/SpaiR/byond-dmm-util/tree/master

Download byond-dmm-util

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.spair/byond-dmm-util/ -->
<dependency>
    <groupId>io.github.spair</groupId>
    <artifactId>byond-dmm-util</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.spair/byond-dmm-util/
implementation 'io.github.spair:byond-dmm-util:1.1'
// https://jarcasting.com/artifacts/io.github.spair/byond-dmm-util/
implementation ("io.github.spair:byond-dmm-util:1.1")
'io.github.spair:byond-dmm-util:jar:1.1'
<dependency org="io.github.spair" name="byond-dmm-util" rev="1.1">
  <artifact name="byond-dmm-util" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.spair', module='byond-dmm-util', version='1.1')
)
libraryDependencies += "io.github.spair" % "byond-dmm-util" % "1.1"
[io.github.spair/byond-dmm-util "1.1"]

Dependencies

compile (4)

Group / Artifact Type Version
io.github.spair : dmm-io jar 1.5
io.github.spair : byond-dme-parser jar 0.3.2
io.github.spair : byond-dmi-util jar 2.1
org.codehaus.groovy : groovy-jsr223 jar 2.5.5

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status Javadocs License

BYOND Dmm Util

About

Library with util methods for dmm files.

Features:

  • able to render dmm files into proper image
  • compare two maps to get difference between them

Installation

Maven Central JCenter

Library deployed to Maven Central and JCenter repositories.

pom.xml

<dependency>
    <groupId>io.github.spair</groupId>
    <artifactId>byond-dmm-util</artifactId>
    <version>${last.version}</version>
</dependency>

build.gradle:

compile 'io.github.spair:byond-dmm-util:${last.version}'

How To Use

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.

DmmDrawer

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")

DmmDiffer

Compares two Dmm objects and returns list of DiffPoint or MapRegion with specific area of differences.

More could be found in JavaDoc.

Versions

Version
1.1
1.0.1
1.0
0.2.2
0.2.1
0.2
0.1.9.1
0.1.9
0.1.8.2
0.1.8.1
0.1.8
0.1.6
0.1.5
0.1.4.3
0.1.4.2
0.1.4.1
0.1.4
0.1.3.2
0.1.3.1
0.1.3
0.1.2
0.1.1