TileGID
public struct TileGID : ExpressibleByIntegerLiteral, Equatable
Represents the reference to a specific Tile in a tile Layer for a given Map. It captures not only an identifier uniquely identifying the Tile (and the TileSet it is in) but also if the Tile should be flipped (see TileFlip)
-
Declaration
Swift
public typealias IntegerLiteralType = UInt32 -
Create a new instance with the given raw value, note that unless you are creating a customized
ResourceLoaderyou will not need this.Declaration
Swift
public init(integerLiteral value: UInt32)Parameters
valueThe raw value (see TMX format description in the Tiled documentation)
-
Creates a new instance for the supplied
MapglobalTileOffsetDeclaration
Swift
public init(tileId: UInt32, flip: TileFlip) -
trueif the tile should be flipped horizontallyDeclaration
Swift
public var flipHorizontally: Bool { get } -
trueif the tile should be flipped verticallyDeclaration
Swift
public var flipVertically: Bool { get } -
trueif the tile should be flipped diagonallyDeclaration
Swift
public var flipDiagonally: Bool { get } -
The combined changes to the orientation of the tile
Declaration
Swift
public var orientation: TileFlip { get }
View on GitHub
TileGID Structure Reference