* return all the existing layers * @returns {TMXLayer[]} Array of Layers
()
| 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 |