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 morePointgeneric 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 moreObjectTypescaptures 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 moreObjectTypecaptures 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 moreGrouprepresents the collection ofLayers a Tiled Group Layer contains (aLayer.Kindof.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
Mapcan be one of four kinds- Tile A grid of
Tiles - __ Object__ A collection of
Objects - Group A collection of
Layers 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 moreTilein a tileLayerfor a givenMap. It captures not only an identifier uniquely identifying theTile(and theTileSetit is in) but also if theTileshould be flipped (seeTileFlip)Declaration
Swift
public struct TileGID : ExpressibleByIntegerLiteral, Equatable -
Represents a Tiled map which can be loaded from a Tiled
See moretmxfile (other Tiled formats can be supported in the future, such as JSON). It contains the root collection ofLayers as well as carrying the references to theTileSets used by theMapDeclaration
Swift
public struct Map : LayerContainer, Loadable, MutablePropertied -
Represents a Tiled object (which are contained inside Object
See moreLayers). All objects share some common attributes (e.g. their position inside their containingLayer).Declaration
Swift
public struct Object : Equatable, ObjectProtocol, MutablePropertied
View on GitHub
Structures Reference