File hp/tmx/TMXMap.lua
Functions
| M:addLayer (layer) | Add a layer. |
| M:addObjectGroup (objectGroup) | Add the ObjectGroup. |
| M:addTileset (tileset) | Add the tile set. |
| M:findLayerByName (name) | Finds and returns the layer. |
| M:findTilesetByGid (gid) | Finds and returns the tileset from the specified gid. |
| M:getProperty (key) | Returns the property with the specified key. |
| M:init () | The constructor. |
| M:printDebug () | The information on the standard output TMXMap. |
| M:removeLayer (layer) | Remove a layer. |
| M:removeLayerAt (index) | Remove a layer. |
| M:removeObjectGroup (objectGroup) | Remove the ObjectGroup. |
| M:removeObjectGroupAt (index) | Remove the ObjectGroup. |
| M:removeTileset (tileset) | Remove the tile set. |
| M:removeTilesetAt (index) | Remove the tile set. |
Tables
| TMXMap | This class stores data in the form of map tiles. |
Functions
- M:addLayer (layer)
-
Add a layer.
Parameters
- layer: layer.
- M:addObjectGroup (objectGroup)
-
Add the ObjectGroup.
Parameters
- objectGroup:
- M:addTileset (tileset)
-
Add the tile set.
Parameters
- tileset: tileset.
- M:findLayerByName (name)
-
Finds and returns the layer.
Parameters
- name: Find name.
- M:findTilesetByGid (gid)
-
Finds and returns the tileset from the specified gid.
Parameters
- gid:
Return value:
TMXTileset - M:getProperty (key)
-
Returns the property with the specified key.
Parameters
- key:
- M:init ()
- The constructor.
- M:printDebug ()
- The information on the standard output TMXMap.
- M:removeLayer (layer)
-
Remove a layer.
Parameters
- layer:
- M:removeLayerAt (index)
-
Remove a layer.
Parameters
- index:
- M:removeObjectGroup (objectGroup)
-
Remove the ObjectGroup.
Parameters
- objectGroup:
- M:removeObjectGroupAt (index)
-
Remove the ObjectGroup.
Parameters
- index:
- M:removeTileset (tileset)
-
Remove the tile set.
Parameters
- tileset:
- M:removeTilesetAt (index)
-
Remove the tile set.
Parameters
- index: