ObjectPostProcessor
public protocol ObjectPostProcessor : 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
-
Perform post processing on a point object
Declaration
Swift
func process(point: EngineType.PointObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.PointObjectTypeParameters
pointThe point to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a rectangle object
Declaration
Swift
func process(rectangle: EngineType.RectangleObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.RectangleObjectTypeParameters
rectangleThe rectangle to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a ellipse object
Declaration
Swift
func process(ellipse: EngineType.EllipseObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.EllipseObjectTypeParameters
ellipseThe ellipse to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a sprite object created for a tile
Declaration
Swift
func process(sprite: EngineType.SpriteType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.SpriteTypeParameters
spriteThe sprite to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a text object
Declaration
Swift
func process(text: EngineType.TextObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.TextObjectTypeParameters
textThe text to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a polyline object
Declaration
Swift
func process(polyline: EngineType.PolylineObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.PolylineObjectTypeParameters
polylineThe polyline to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
-
Perform post processing on a polygon object
Declaration
Swift
func process(polygon: EngineType.PolygonObjectType, from object: ObjectProtocol, for map: Map, from project: Project) throws -> EngineType.PolygonObjectTypeParameters
polygonThe polygon to be processed
objectThe object it was created from
mapThe map it is in
projectThe project the map was loaded from
View on GitHub
ObjectPostProcessor Protocol Reference