PropertyValue
public enum PropertyValue : Equatable, CustomStringConvertible, ExpressibleByStringLiteral, ExpressibleByIntegerLiteral, ExpressibleByFloatLiteral, ExpressibleByBooleanLiteral, ExpressibleByArrayLiteral
Tiled user defined properties are typed, and captured as one of a number of PropertyValue cases with attached data for the specific typed value
-
String properties
Declaration
Swift
case string(String) -
Boolean properties
Declaration
Swift
case bool(Bool) -
Integer properties
Declaration
Swift
case int(Int) -
Float properties (represented in TiledKit as a
Double)Declaration
Swift
case double(Double) -
File properties
Declaration
Swift
case file(url: URL) -
Color properties
Declaration
Swift
case color(Color) -
Object properties
Declaration
Swift
case object(id: Int) -
Unknown types
Declaration
Swift
case error(type: String, value: String) -
Declaration
Swift
public typealias ArrayLiteralElement = Byte -
Declaration
Swift
public typealias FloatLiteralType = Double -
Declaration
Swift
public typealias IntegerLiteralType = Int -
Declaration
Swift
public typealias StringLiteralType = String -
Declaration
Swift
public typealias BooleanLiteralType = Bool -
Declaration
Swift
public init(integerLiteral value: Int) -
Declaration
Swift
public init(floatLiteral value: Double) -
Declaration
Swift
public init(booleanLiteral value: Bool) -
Declaration
Swift
public init(stringLiteral value: String) -
Declaration
Swift
public init(arrayLiteral elements: Byte...) -
Declaration
Swift
public var description: String { get }
View on GitHub
PropertyValue Enumeration Reference