LayerPostProcessor
public protocol LayerPostProcessor : Producer
A specialized form of a PostProcessor that applies to Tiles. It is called after the first factory
has created the specialized sprite for the tile
-
Perfforms post processing on an object layer after creation
Declaration
Swift
func process(objectLayer: EngineType.ObjectLayerType, from layer: LayerProtocol, for map: Map, in project: Project) throws -> EngineType.ObjectLayerTypeParameters
objectLayerThe object layer
layerThe original tiled layer meta data
mapThe map the layer is in
projectThe project the map was loaded from
-
Perfforms post processing on an tile layer after creation
Declaration
Swift
func process(tileLayer: EngineType.TileLayerType, from layer: LayerProtocol, for map: Map, in project: Project) throws -> EngineType.TileLayerTypeParameters
tileLayerThe tile layer
layerThe original tiled layer meta data
mapThe map the layer is in
projectThe project the map was loaded from
-
Perform post processing on a tile instance created in a tile layer
Declaration
Swift
func process(tileInstance: EngineType.SpriteType, from tile: Tile, and tileset: TileSet, in layer: LayerProtocol, for map: Map, from project: Project) throws -> EngineType.SpriteTypeParameters
tileInstanceThe tile sprite to be processed
tileThe tile definition
tilesetThe tile set the tile is from
mapThe map it is in
projectThe project the map was loaded from
-
Perfforms post processing on an image layer after creation
Declaration
Swift
func process(imageLayer: EngineType.SpriteType, from layer: LayerProtocol, for map: Map, in project: Project) throws -> EngineType.SpriteTypeParameters
imageLayerThe sprite that was created
layerThe original tiled layer meta data
mapThe map the layer is in
projectThe project the map was loaded from
-
Perfforms post processing on an group layer after creation
Declaration
Swift
func process(groupLayer: EngineType.GroupLayerType, from layer: LayerProtocol, for map: Map, in project: Project) throws -> EngineType.GroupLayerTypeParameters
groupLayerThe group layer
layerThe original tiled layer meta data
mapThe map the layer is in
projectThe project the map was loaded from
View on GitHub
LayerPostProcessor Protocol Reference