TilePostProcessor

public protocol TilePostProcessor : 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

  • Enables post processing of tiles which is performed after all tiles for a tileset have been created by factories and enables any specialization or other work that requires other tiles to have been loaded

    Declaration

    Swift

    func process(sprite: EngineType.SpriteType, from tile: Tile, in tileSet: TileSet, with setSprites: [UInt32 : EngineType.SpriteType], for map: Map, from project: Project) throws -> EngineType.SpriteType

    Parameters

    sprite

    The previously created SpriteType

    tile

    The Tile it was created from

    tileSet

    The TileSet the tile belongs to

    setSprites

    All other sprites created for the TileSet

    map

    The map the TileSets were loaded from

    project

    The project the Map& TileSet was loaded from