AutoTileSink

ldtk.rules.AutoTileSink (Interface) → CellTileBuffer, FlatTileBuffer, MapAutoTileCache

Receives the tiles produced by the engine. Implementations must not allocate per tile in hot paths when possible.

Instance Members

beginRule(ruleUid: Int): Void

Called before the tiles of a rule are added

Name Type
ruleUid Int

add(coordId: Int, x: Int, y: Int, srcX: Int, srcY: Int, tid: Int, flips: Int, a: Float): Void
Name Type
coordId Int
x Int
y Int
srcX Int
srcY Int
tid Int
flips Int
a Float