Inherits from NSObject
Declared in KKTilemapLayerContourTracer.h

Overview

Internal use. Performs contour tracing of a tile layer and returns the resulting contour segments as CGPathRef or KKPointArray.

Properties

contourSegments

Contains array of CGPathRef definining the contours' line segments.

@property (atomic, readonly) NSArray *contourSegments

Declared In

KKTilemapLayerContourTracer.h

Class Methods

contourMapFromTileLayer:

Parses the tile layer and creates a contour map.

+ (id)contourMapFromTileLayer:(KKTilemapLayer *)layer

Parameters

layer

A tile layer.

Return Value

Instance of KKTilemapLayerContourTracer.

Declared In

KKTilemapLayerContourTracer.h

contourMapFromTileLayer:blockingGids:

Parses the tile layer and creates a contour map.

+ (id)contourMapFromTileLayer:(KKTilemapLayer *)layer blockingGids:(KKIntegerArray *)blockingGids

Parameters

layer

A tile layer.

blockingGids

An integer array of specific GIDs that should be considered as blocking.

Return Value

Instance of KKTilemapLayerContourTracer.

Declared In

KKTilemapLayerContourTracer.h