TileFlip
public struct TileFlip : OptionSet
Captures if and how a Tile
should be rendered
-
As specied in the Tiled TMX format, a tile gid is a 32-bit unsigned integer
Declaration
Swift
public typealias RawValue = UInt32
-
The raw value that could be OR’d with a tile id to get the full
TileGID
Declaration
Swift
public var rawValue: UInt32
-
Creates a new instance with the specified value
Declaration
Swift
public init(rawValue: UInt32)
-
Undocumented
Declaration
Swift
public mutating func add(_ flip: TileFlip)
-
Include if the tile should be flipped horizontally
Declaration
Swift
public static let horizontally: TileFlip
-
Include if the tile should be flipped vertically
Declaration
Swift
public static let vertically: TileFlip
-
Include if the tile should be flipped diagnoally
Declaration
Swift
public static let diagonally: TileFlip