summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.TileMapAtlas.lua
blob: ba326bb0ae6f390341ab250c951ae237ab156165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---@meta

---@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