Function tiled::parse_with_path [−][src]
pub fn parse_with_path<R: Read>(
reader: R,
path: &Path
) -> Result<Map, TiledError>
Parse a buffer hopefully containing the contents of a Tiled file and try to
parse it. This augments parse
with a file location: some engines
(e.g. Amethyst) simply hand over a byte stream (and file location) for parsing,
in which case this function may be required.