summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/TMXMapInfo.lua
blob: ffb027450a7fc957ad21fe61819f2c423684084d (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---@meta

---@class cc.TMXMapInfo 
local TMXMapInfo={ }
cc.TMXMapInfo=TMXMapInfo




---* 
---@param currentString string
---@return self
function TMXMapInfo:setCurrentString (currentString) end
---* / map hexsidelength
---@return int
function TMXMapInfo:getHexSideLength () end
---* 
---@param tileSize size_table
---@return self
function TMXMapInfo:setTileSize (tileSize) end
---* / map orientation
---@return int
function TMXMapInfo:getOrientation () end
---* 
---@param groups array_table
---@return self
function TMXMapInfo:setObjectGroups (groups) end
---* 
---@param layers array_table
---@return self
function TMXMapInfo:setLayers (layers) end
---*  initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file 
---@param xmlFilename string
---@return boolean
function TMXMapInfo:parseXMLFile (xmlFilename) end
---* / parent element
---@return int
function TMXMapInfo:getParentElement () end
---* 
---@param fileName string
---@return self
function TMXMapInfo:setTMXFileName (fileName) end
---* 
---@param xmlString string
---@return boolean
function TMXMapInfo:parseXMLString (xmlString) end
---@overload fun():self
---@overload fun():self
---@return array_table
function TMXMapInfo:getLayers () end
---* / map staggeraxis
---@return int
function TMXMapInfo:getStaggerAxis () end
---* 
---@param hexSideLength int
---@return self
function TMXMapInfo:setHexSideLength (hexSideLength) end
---*  initializes a TMX format with a  tmx file 
---@param tmxFile string
---@return boolean
function TMXMapInfo:initWithTMXFile (tmxFile) end
---* / parent GID
---@return int
function TMXMapInfo:getParentGID () end
---@overload fun():self
---@overload fun():self
---@return array_table
function TMXMapInfo:getTilesets () end
---* 
---@param element int
---@return self
function TMXMapInfo:setParentElement (element) end
---*  initializes a TMX format with an XML string and a TMX resource path 
---@param tmxString string
---@param resourcePath string
---@return boolean
function TMXMapInfo:initWithXML (tmxString,resourcePath) end
---* 
---@param gid int
---@return self
function TMXMapInfo:setParentGID (gid) end
---* / layer attribs
---@return int
function TMXMapInfo:getLayerAttribs () end
---* / tiles width & height
---@return size_table
function TMXMapInfo:getTileSize () end
---* 
---@return map_table
function TMXMapInfo:getTileProperties () end
---* / is storing characters?
---@return boolean
function TMXMapInfo:isStoringCharacters () end
---* 
---@return string
function TMXMapInfo:getExternalTilesetFileName () end
---@overload fun():self
---@overload fun():self
---@return array_table
function TMXMapInfo:getObjectGroups () end
---* 
---@return string
function TMXMapInfo:getTMXFileName () end
---* 
---@param staggerIndex int
---@return self
function TMXMapInfo:setStaggerIndex (staggerIndex) end
---* 
---@param properties map_table
---@return self
function TMXMapInfo:setProperties (properties) end
---* 
---@param orientation int
---@return self
function TMXMapInfo:setOrientation (orientation) end
---* 
---@param tileProperties map_table
---@return self
function TMXMapInfo:setTileProperties (tileProperties) end
---* 
---@param mapSize size_table
---@return self
function TMXMapInfo:setMapSize (mapSize) end
---* 
---@return string
function TMXMapInfo:getCurrentString () end
---* 
---@param storingCharacters boolean
---@return self
function TMXMapInfo:setStoringCharacters (storingCharacters) end
---* 
---@param staggerAxis int
---@return self
function TMXMapInfo:setStaggerAxis (staggerAxis) end
---* / map width & height
---@return size_table
function TMXMapInfo:getMapSize () end
---* 
---@param tilesets array_table
---@return self
function TMXMapInfo:setTilesets (tilesets) end
---@overload fun():self
---@overload fun():self
---@return map_table
function TMXMapInfo:getProperties () end
---* / map stagger index
---@return int
function TMXMapInfo:getStaggerIndex () end
---* 
---@param layerAttribs int
---@return self
function TMXMapInfo:setLayerAttribs (layerAttribs) end
---*  creates a TMX Format with a tmx file 
---@param tmxFile string
---@return self
function TMXMapInfo:create (tmxFile) end
---*  creates a TMX Format with an XML string and a TMX resource path 
---@param tmxString string
---@param resourcePath string
---@return self
function TMXMapInfo:createWithXML (tmxString,resourcePath) end
---* js ctor
---@return self
function TMXMapInfo:TMXMapInfo () end