跳转到内容

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.

Record<string, unknown>

(source) => Promise<string>

Promise<TiledMapData | null>