public class TiledResource extends Object
A TiledResource is an object of a type that can represent the "top-level" structure of a Tiled file, and may have been read from such a structure by a TiledReader. For instance, a TiledTileset may have been read from a particular TSX file by a TiledReader's getTileset() method, and may thus represent the top-level structure of that file. However, a TiledTileset may instead represent a tileset embedded as a lower-level structure in a TMX file.
Modifier and Type | Method and Description |
---|---|
String |
getPath()
Returns the path to the Tiled file from which this resource was read as
the top-level structure, or null if this resource was read as a
lower-level structure.
|
TiledReader |
getReader()
Returns the TiledReader that read this resource, whether or not it was
read from a Tiled file's top-level structure.
|
public final TiledReader getReader()
public final String getPath()
Copyright © 2020. All rights reserved.