diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.TileMapAtlas.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.TileMapAtlas.lua | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua b/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua new file mode 100644 index 00000000..691512ad --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua @@ -0,0 +1,41 @@ + +---@class cc.TileMapAtlas :cc.AtlasNode +local TileMapAtlas={ } +cc.TileMapAtlas=TileMapAtlas + + + + +---* initializes a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br> +---* The file will be loaded using the TextureMgr. +---@param tile string +---@param mapFile string +---@param tileWidth int +---@param tileHeight int +---@return boolean +function TileMapAtlas:initWithTileFile (tile,mapFile,tileWidth,tileHeight) end +---* dealloc the map from memory +---@return self +function TileMapAtlas:releaseMap () end +---* Returns a tile from position x,y.<br> +---* For the moment only channel R is used +---@param position vec2_table +---@return color3b_table +function TileMapAtlas:getTileAt (position) end +---* sets a tile at position x,y.<br> +---* For the moment only channel R is used +---@param tile color3b_table +---@param position vec2_table +---@return self +function TileMapAtlas:setTile (tile,position) end +---* creates a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br> +---* The tile file will be loaded using the TextureMgr. +---@param tile string +---@param mapFile string +---@param tileWidth int +---@param tileHeight int +---@return self +function TileMapAtlas:create (tile,mapFile,tileWidth,tileHeight) end +---* js ctor +---@return self +function TileMapAtlas:TileMapAtlas () end
\ No newline at end of file |