CCTiledMapTilesetInfo Class Reference
| Inherits from | NSObject |
| Declared in | CCTMXXMLParser.h |
Overview
CCTiledMapTilesetInfo contains information about the Tile Map’s Tileset. This information is obtained from the supplied Tile Map File (TMX).
Tasks
Accessing the Tile Map Tileset Info Attributes
-
nameproperty -
firstGidproperty -
tileSizeproperty -
spacingproperty -
marginproperty -
sourceImageproperty -
imageSizeproperty -
tileOffsetproperty -
tileAnchorPointproperty -
contentScaleproperty
Accessing the Tile Map Tileset Info Helpers
Properties
contentScale
Content scale of the TMX file. Mostly for backwords compatibility.
@property (nonatomic, readwrite) CGFloat contentScaleDeclared In
CCTMXXMLParser.hfirstGid
First GID.
@property (nonatomic, readwrite, assign) unsigned int firstGidDeclared In
CCTMXXMLParser.himageSize
Size of image in pixels.
@property (nonatomic, readwrite, assign) CGSize imageSizeDeclared In
CCTMXXMLParser.hmargin
Tileset margin.
@property (nonatomic, readwrite, assign) unsigned int marginDeclared In
CCTMXXMLParser.hname
Tileset name.
@property (nonatomic, readwrite, strong) NSString *nameDeclared In
CCTMXXMLParser.hsourceImage
Tileset source texture, should be spritesheet.
@property (nonatomic, readwrite, strong) NSString *sourceImageDeclared In
CCTMXXMLParser.hspacing
Tileset spacing.
@property (nonatomic, readwrite, assign) unsigned int spacingDeclared In
CCTMXXMLParser.htileAnchorPoint
Auto set when tileOffset is modified.
@property (nonatomic, readonly, assign) CGPoint tileAnchorPointDeclared In
CCTMXXMLParser.h