MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getTiledMap

Method getTiledMap

core/src/core/java/var3d/net/center/VGame.java:1713–1722  ·  view source on GitHub ↗

tieldMap

(String name)

Source from the content-addressed store, hash-verified

1711 * tieldMap
1712 */
1713 public TiledMap getTiledMap(String name) {
1714 if (assets.isLoaded(name, TiledMap.class)) {
1715 return assets.get(name, TiledMap.class);
1716 } else {
1717 assets.setLoader(TiledMap.class, new TmxMapLoader());
1718 assets.load(name, TiledMap.class);
1719 assets.finishLoading();
1720 return assets.get(name, TiledMap.class);
1721 }
1722 }
1723
1724 /**
1725 * 获取Model

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected