
de.gurkenlabs.litiengine.resources.Tilesets Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litiengine Show documentation
Show all versions of litiengine Show documentation
The FOSS 2D Java game engine.
The newest version!
package de.gurkenlabs.litiengine.resources;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import jakarta.xml.bind.JAXBException;
import de.gurkenlabs.litiengine.environment.tilemap.xml.Tileset;
import de.gurkenlabs.litiengine.environment.tilemap.xml.TmxException;
import de.gurkenlabs.litiengine.util.io.XmlUtilities;
public class Tilesets extends ResourcesContainer {
Tilesets() {}
@Override
protected Tileset load(URL resourceName) throws IOException, URISyntaxException {
try {
Tileset tileset = XmlUtilities.read(Tileset.class, resourceName);
tileset.finish(resourceName);
return tileset;
} catch (JAXBException e) {
throw new TmxException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy