TiledType
public struct TiledType : OptionSet, CustomStringConvertible
Enables the definition or identification of the type of any of the core Tiled objects such as maps, layers, etc.
-
The bitmask
Declaration
Swift
public let rawValue: Int -
Create a new instance
Declaration
Swift
public init(rawValue: Int)Parameters
rawValueThe bit value to use
-
The object is or must be a tiled map
Declaration
Swift
public static let map: TiledType -
The object is or must be a tiled tile layer
Declaration
Swift
public static let tileLayer: TiledType -
The object is or must be a tiled image layer
Declaration
Swift
public static let imageLayer: TiledType -
The object is or must be a tiled group layer
Declaration
Swift
public static let groupLayer: TiledType -
The object is or must be a tiled object layer
Declaration
Swift
public static let objectLayer: TiledType -
The object is or must be a point object
Declaration
Swift
public static let pointObject: TiledType -
The object is or must be a rectangle object
Declaration
Swift
public static let rectangleObject: TiledType -
The object is or must be a ellipse object
Declaration
Swift
public static let ellipseObject: TiledType -
The object is or must be a polyline object
Declaration
Swift
public static let polylineObject: TiledType -
The object is or must be a polygon object
Declaration
Swift
public static let polygonObject: TiledType -
The object is or must be a tile object
Declaration
Swift
public static let tileObject: TiledType -
The object is or must be a text object
Declaration
Swift
public static let textObject: TiledType -
The object is or must be a tile object from a tile set
Declaration
Swift
public static let tile: TiledType -
Used for conditionals where the object must be a layer
Declaration
Swift
public static let anyLayer: TiledType -
Used for conditionals where the object must be an tiled object
Declaration
Swift
public static let anyObject: TiledType -
Used for conditionals where the object must be a geometric (point, rectangle, ellipse, polyline, or polygon)
Declaration
Swift
public static let anyShape: TiledType -
Describes the condition or type
Declaration
Swift
public var description: String { get }
View on GitHub
TiledType Structure Reference