MCPcopy Create free account
hub / github.com/melonjs/melonJS / getLayers

Method getLayers

packages/melonjs/src/level/tiled/TMXTileMap.js:601–605  ·  view source on GitHub ↗

* return all the existing layers * @returns {TMXLayer[]} Array of Layers

()

Source from the content-addressed store, hash-verified

599 * @returns {TMXLayer[]} Array of Layers
600 */
601 getLayers() {
602 // parse the map for objects
603 this.readMapObjects(this.data);
604 return this.layers;
605 }
606
607 /**
608 * destroy function, clean all allocated objects

Callers 3

addToMethod · 0.95
makeLayerFunction · 0.95
makeOrthogonalLayerFunction · 0.95

Calls 1

readMapObjectsMethod · 0.95

Tested by 2

makeLayerFunction · 0.76
makeOrthogonalLayerFunction · 0.76