This repository contains a full data model based on the latest API schema of LDTK (schema-extracted using QuickType). In addition, also provides a set of converters to load the data model from a valid JSON source file.
Load the data model from a valid LDTK json file:
var projectData = LdtkConverter.fromJsonString(loadResourceFile("./data.json"));
The library is available as a Maven dependency on repo s01.oss.sonatype.org with the following coordinates:
io.github.joafalves:java-ldtk-api
Notice that the version matches the JSON version of the data model (minimum version is '0.9.3').
Repository:
https://s01.oss.sonatype.org/content/repositories/releases/
Gradle Import:
repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases/' }
}
dependencies {
implementation 'io.github.joafalves:java-ldtk-api:latest.release'
}
Maven Import:
<dependency>
<groupId>io.github.joafalves</groupId>
<artifactId>java-ldtk-api</artifactId>
</dependency>
This project is structured as follows:
.src/
├── main # Main classes
└── test # Test classes
.build.gradle # Gradle build file
.settings.gradle # Gradle settings file
fasterxml.jackson (implementation)
lombok (compile)
junit5 (test)
- Java 8+
- Gradle 6.x+
- Repo owner or admin
- Other community or team contact