TMXGeneratorDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | TMXGenerator.h |
Tasks
-
– mapFilePathReturns the map’s filePath to be saved to.
required method -
– mapAttributeSetupReturns map setup parameters and properties. Keys listed in the “Map Setup Info Keys” section above. Number values can be strings or NSNumbers.
required method -
– tileSetInfoForName:Returns tileset setup information based on the name. Keys listed in “Tileset Setup Info Keys” section above.
required method -
– layerInfoForName:Returns layer setup information based on the name passed. Keys listed in “Layer Setup Info Keys” section above.
required method -
– objectGroupNamesReturns the names of all the object groups as NSStrings. It’s ok to return nil if don’t need objects.
required method -
– objectsGroupInfoForName:Returns object group information based on the name passed. Keys listed in “Objects Group Setup Info Keys” section above.
required method -
– layerNamesReturns all layer names as an array of NSStrings. Order of array items returned here determine the heirarchy.
required method -
– tileSetNamesReturns the names of all tilesets as NSStrings.
required method -
– tileSetNameForLayer:Returns the name of the tileset (only one right now) for the layer.
required method -
– tilePropertyForLayer:tileSetName:X:Y:Returns a uniquely identifying value for the key returned in the method keyForTileIdentificationForLayer: If the value is not found, the tile gets set to the minimum GID.
required method -
– tileIdentificationKeyForLayer:required method -
– propertiesForTileSetNamed:Returns the properties for a given tileset.
required method -
– copyAtlasFileForName: -
– propertiesForObjectWithName:inGroupWithName:Returns the optional properties for a given object in a given group. Keys are listed in “Single Object Setup Info Keys” section above.
-
– tileRotationForLayer:X:Y:Returns a rotation value (no rotation if this method doesn’t exist) for the specified tile name and tile.
Instance Methods
layerInfoForName:
Returns layer setup information based on the name passed. Keys listed in “Layer Setup Info Keys” section above.
- (NSDictionary *)layerInfoForName:(NSString *)nameDeclared In
TMXGenerator.hlayerNames
Returns all layer names as an array of NSStrings. Order of array items returned here determine the heirarchy.
- (NSArray *)layerNamesDeclared In
TMXGenerator.hmapAttributeSetup
Returns map setup parameters and properties. Keys listed in the “Map Setup Info Keys” section above. Number values can be strings or NSNumbers.
- (NSDictionary *)mapAttributeSetupDeclared In
TMXGenerator.hmapFilePath
Returns the map’s filePath to be saved to.
- (NSString *)mapFilePathDeclared In
TMXGenerator.hobjectGroupNames
Returns the names of all the object groups as NSStrings. It’s ok to return nil if don’t need objects.
- (NSArray *)objectGroupNamesDeclared In
TMXGenerator.hobjectsGroupInfoForName:
Returns object group information based on the name passed. Keys listed in “Objects Group Setup Info Keys” section above.
- (NSArray *)objectsGroupInfoForName:(NSString *)nameDeclared In
TMXGenerator.hpropertiesForObjectWithName:inGroupWithName:
Returns the optional properties for a given object in a given group. Keys are listed in “Single Object Setup Info Keys” section above.
- (NSArray *)propertiesForObjectWithName:(NSString *)name inGroupWithName:(NSString *)groupNameDeclared In
TMXGenerator.hpropertiesForTileSetNamed:
Returns the properties for a given tileset.
- (NSDictionary *)propertiesForTileSetNamed:(NSString *)nameDeclared In
TMXGenerator.htilePropertyForLayer:tileSetName:X:Y:
Returns a uniquely identifying value for the key returned in the method keyForTileIdentificationForLayer: If the value is not found, the tile gets set to the minimum GID.
- (NSString *)tilePropertyForLayer:(NSString *)layerName tileSetName:(NSString *)tileSetName X:(int)x Y:(int)yDeclared In
TMXGenerator.htileRotationForLayer:X:Y:
Returns a rotation value (no rotation if this method doesn’t exist) for the specified tile name and tile.
- (int)tileRotationForLayer:(NSString *)layerName X:(int)x Y:(int)yDeclared In
TMXGenerator.htileSetInfoForName:
Returns tileset setup information based on the name. Keys listed in “Tileset Setup Info Keys” section above.
- (NSDictionary *)tileSetInfoForName:(NSString *)nameDeclared In
TMXGenerator.h