From 8fefb8f3e100976235dc83d6ae3785952d11c710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 5 Jul 2021 20:51:43 +0800 Subject: cleanup --- meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua | 109 +++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua (limited to 'meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua') diff --git a/meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua b/meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua new file mode 100644 index 00000000..50a1c5ed --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.TMXTiledMap.lua @@ -0,0 +1,109 @@ +---@meta + +---@class cc.TMXTiledMap :cc.Node +local TMXTiledMap={ } +cc.TMXTiledMap=TMXTiledMap + + + + +---* Set the object groups.
+---* param groups The object groups. +---@param groups array_table +---@return self +function TMXTiledMap:setObjectGroups (groups) end +---* Return the value for the specific property name.
+---* param propertyName The specific property name.
+---* return Return the value for the specific property name. +---@param propertyName string +---@return cc.Value +function TMXTiledMap:getProperty (propertyName) end +---* +---@return int +function TMXTiledMap:getLayerNum () end +---* Set the map's size property measured in tiles.
+---* param mapSize The map's size property measured in tiles. +---@param mapSize size_table +---@return self +function TMXTiledMap:setMapSize (mapSize) end +---* Return the TMXObjectGroup for the specific group.
+---* param groupName The group Name.
+---* return A Type of TMXObjectGroup. +---@param groupName string +---@return cc.TMXObjectGroup +function TMXTiledMap:getObjectGroup (groupName) end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXTiledMap:getObjectGroups () end +---* +---@return string +function TMXTiledMap:getResourceFile () end +---* initializes a TMX Tiled Map with a TMX file +---@param tmxFile string +---@return boolean +function TMXTiledMap:initWithTMXFile (tmxFile) end +---* The tiles's size property measured in pixels.
+---* return The tiles's size property measured in pixels. +---@return size_table +function TMXTiledMap:getTileSize () end +---* The map's size property measured in tiles.
+---* return The map's size property measured in tiles. +---@return size_table +function TMXTiledMap:getMapSize () end +---* initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources +---@param tmxString string +---@param resourcePath string +---@return boolean +function TMXTiledMap:initWithXML (tmxString,resourcePath) end +---* Properties.
+---* return Properties. +---@return map_table +function TMXTiledMap:getProperties () end +---* Set the tiles's size property measured in pixels.
+---* param tileSize The tiles's size property measured in pixels. +---@param tileSize size_table +---@return self +function TMXTiledMap:setTileSize (tileSize) end +---* Set the properties.
+---* param properties A Type of ValueMap to set the properties. +---@param properties map_table +---@return self +function TMXTiledMap:setProperties (properties) end +---* Return the TMXLayer for the specific layer.
+---* param layerName A specific layer.
+---* return The TMXLayer for the specific layer. +---@param layerName string +---@return cc.TMXLayer +function TMXTiledMap:getLayer (layerName) end +---* Map orientation.
+---* return Map orientation. +---@return int +function TMXTiledMap:getMapOrientation () end +---* Set map orientation.
+---* param mapOrientation The map orientation. +---@param mapOrientation int +---@return self +function TMXTiledMap:setMapOrientation (mapOrientation) end +---* Creates a TMX Tiled Map with a TMX file.
+---* param tmxFile A TMX file.
+---* return An autorelease object. +---@param tmxFile string +---@return self +function TMXTiledMap:create (tmxFile) end +---* Initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources.
+---* param tmxString A TMX formatted XML string.
+---* param resourcePath The path to TMX resources.
+---* return An autorelease object.
+---* js NA +---@param tmxString string +---@param resourcePath string +---@return self +function TMXTiledMap:createWithXML (tmxString,resourcePath) end +---* Get the description.
+---* js NA +---@return string +function TMXTiledMap:getDescription () end +---* js ctor +---@return self +function TMXTiledMap:TMXTiledMap () end \ No newline at end of file -- cgit v1.2.3