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.ObjectLayerType

    Parameters

    objectLayer

    The object layer

    layer

    The original tiled layer meta data

    map

    The map the layer is in

    project

    The 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.TileLayerType

    Parameters

    tileLayer

    The tile layer

    layer

    The original tiled layer meta data

    map

    The map the layer is in

    project

    The 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.SpriteType

    Parameters

    tileInstance

    The tile sprite to be processed

    tile

    The tile definition

    tileset

    The tile set the tile is from

    map

    The map it is in

    project

    The 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.SpriteType

    Parameters

    imageLayer

    The sprite that was created

    layer

    The original tiled layer meta data

    map

    The map the layer is in

    project

    The 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.GroupLayerType

    Parameters

    groupLayer

    The group layer

    layer

    The original tiled layer meta data

    map

    The map the layer is in

    project

    The project the map was loaded from