Structures
The following structures are available globally.
-
Captures colors in a platform independent way for subsequent specialization.
See moreDeclaration
Swift
public struct Color : Equatable
-
The
See morePoint
generic captures a single in space.Declaration
Swift
public struct Point<N> : Equatable, CustomStringConvertible where N : Numeric
-
A generic type that stores a 2D dimenion (with width and height)
See moreDeclaration
Swift
public struct Dimension<N> : Equatable, CustomStringConvertible where N : Numeric
-
A generic type that captrues a rectangular region in 2D space with an origin and size
See moreDeclaration
Swift
public struct Rectangle<N> : Equatable, CustomStringConvertible where N : Numeric
-
Enables the definition or identification of the type of any of the core Tiled objects such as maps, layers, etc.
See moreDeclaration
Swift
public struct TiledType : OptionSet, CustomStringConvertible
-
Object types represent pre-defined sets of objects that can be applied to Tiled objects.
See moreObjectTypes
captures these definitions and enables both reading and writing of the file of definitions. That can be useful for programmatically creating the object types for use in Tiled.Declaration
Swift
public struct ObjectTypes : Loadable
-
An
See moreObjectType
captures a set of properties and their default values that can be applied to any Tiled objectDeclaration
Swift
public struct ObjectType
-
Undocumented
See moreDeclaration
Swift
public struct BridgablePropertyProcessor<TargetType> : TiledKit.MapPostProcessor, TiledKit.LayerPostProcessor, TiledKit.ObjectPostProcessor where TargetType : EngineObject
-
Captures a resolved reference to an image, including its dimensions
See moreDeclaration
Swift
public struct ImageReference
-
A
See moreGroup
represents the collection ofLayer
s a Tiled Group Layer contains (aLayer.Kind
of.group
)Declaration
Swift
public struct Group : LayerContainer
-
Undocumented
See moreDeclaration
Swift
public struct GroupLayer : LayerProtocol, LayerContainer
-
Undocumented
See moreDeclaration
Swift
public struct ImageLayer : LayerProtocol
-
Declaration
Swift
public struct ObjectLayer : LayerProtocol
-
Undocumented
See moreDeclaration
Swift
public struct TileLayer : LayerProtocol
-
Layers capture the contents of a
Map
can be one of four kinds- Tile A grid of
Tile
s - __ Object__ A collection of
Object
s - Group A collection of
Layer
s enabling hierarchy within theMap
- Image An image not in a
TileSet
Every layer has a set of common attributes (such as an offest) and can capture user specified properites too.
See moreDeclaration
Swift
public struct Layer : LayerProtocol, MutablePropertied
- Tile A grid of
-
Represents the reference to a specific
See moreTile
in a tileLayer
for a givenMap
. It captures not only an identifier uniquely identifying theTile
(and theTileSet
it is in) but also if theTile
should be flipped (seeTileFlip
)Declaration
Swift
public struct TileGID : ExpressibleByIntegerLiteral, Equatable
-
Represents a Tiled map which can be loaded from a Tiled
See moretmx
file (other Tiled formats can be supported in the future, such as JSON). It contains the root collection ofLayer
s as well as carrying the references to theTileSet
s used by theMap
Declaration
Swift
public struct Map : LayerContainer, Loadable, MutablePropertied
-
Represents a Tiled object (which are contained inside Object
See moreLayer
s). All objects share some common attributes (e.g. their position inside their containingLayer
).Declaration
Swift
public struct Object : Equatable, ObjectProtocol, MutablePropertied