Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
/ dmm-io Public archive

I/O library for dmm files of default and TGM format.

License

Notifications You must be signed in to change notification settings

SpaiR/dmm-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Javadocs License

Dmm I/O

About

I/O library for dmm files of default and TGM format.

Installation

Maven Central JCenter

Library deployed to Maven Central and JCenter repositories.

pom.xml

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

build.gradle:

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

How To Use

File could be parsed like: DmmData data = DmmReader.readMap(mapFile) The map itself could be in standard BYOND format as well as in TGM, reader will handle everything.

To write DmmData to file use DmmWriter class like that:

DmmWriter.saveAsByond(fileToSave, dmmData)  // to save in BYOND format
DmmWriter.saveAsTGM(fileToSave, dmmData)    // to save in TGM format

If fileToSave doesn't exist it will be created.

More could be found in JavaDoc.

Credits

Some implementation ideas were taken from JMerge repository. Big thanks to @atlantiscze for his work.