TMXMapInfo 类型
模块: cc
cc.TMXMapInfo contains the information about the map like: 
- Map orientation (hexagonal, isometric or orthogonal)
- Tile size
- Map size
And it also contains: 
- Layers (an array of TMXLayerInfo objects)
- Tilesets (an array of TMXTilesetInfo objects) 
- ObjectGroups (an array of TMXObjectGroupInfo objects) 
This information is obtained from the TMX file.
索引
属性(properties)
- properties- ArrayProperties of the map info.
- orientation- NumberMap orientation.
- parentElement- ObjectParent element.
- parentGID- NumberParent GID.
- layerAttrs- ObjectLayer attributes.
- storingCharacters- BooleanIs reading storing characters stream.
- currentString- StringCurrent string stored from characters stream.
- mapWidth- NumberWidth of the map
- mapHeight- NumberHeight of the map
- tileWidth- NumberWidth of a tile
- tileHeight- NumberHeight of a tile
- ATTRIB_NONE- Number
- ATTRIB_BASE64- Number
- ATTRIB_GZIP- Number
- ATTRIB_ZLIB- Number
Details
属性(properties)
properties
Properties of the map info.
| meta | description | 
|---|---|
| 类型 | Array | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:334 | 
orientation
Map orientation.
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:339 | 
parentElement
Parent element.
| meta | description | 
|---|---|
| 类型 | Object | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:344 | 
parentGID
Parent GID.
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:349 | 
layerAttrs
Layer attributes.
| meta | description | 
|---|---|
| 类型 | Object | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:354 | 
storingCharacters
Is reading storing characters stream.
| meta | description | 
|---|---|
| 类型 | Boolean | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:359 | 
currentString
Current string stored from characters stream.
| meta | description | 
|---|---|
| 类型 | String | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:364 | 
mapWidth
Width of the map
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:369 | 
mapHeight
Height of the map
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:374 | 
tileWidth
Width of a tile
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:379 | 
tileHeight
Height of a tile
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:384 | 
ATTRIB_NONE
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1264 | 
ATTRIB_BASE64
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1272 | 
ATTRIB_GZIP
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1280 | 
ATTRIB_ZLIB
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1288 | 
