RenderingOrder
public enum RenderingOrder : String, Codable, CaseIterable
The rendering order for a Map
-
Moving right, then down
Declaration
Swift
case rightDown = "right-down"
-
Moving right, then up
Declaration
Swift
case rightUp = "right-up"
-
Moving left, then down
Declaration
Swift
case leftDown = "left-down"
-
Moving left, then up
Declaration
Swift
case leftUp = "left-up"
-
Generatas a series of tile grid positions for the supplied map using the rendering order
Throws
An error if the rendering order is not supportDeclaration
Swift
public func tileSequence(for map: Map) throws -> [TileGridPosition]
Parameters
map
The map to use
Return Value
An array of
TileGridPositions