parseTmjWithExternals
此内容尚不支持你的语言。
parseTmjWithExternals(
json,resolveExternal):Promise<TiledMapData|null>
Defined in: tilemap/tiledLoader.ts:574
Parse a .tmj whose tilesets may be EXTERNAL references ({firstgid, source}
pointing at a .tsj): fetch each source through resolveExternal, merge it
inline (a .tsj carries the same tileset fields, minus firstgid) with its
image path rewritten from tsj-relative to map-relative, then run the
standard parse. Maps with only inline tilesets never invoke the resolver.
Parameters
Section titled “Parameters”Record<string, unknown>
resolveExternal
Section titled “resolveExternal”(source) => Promise<string>
Returns
Section titled “Returns”Promise<TiledMapData | null>