Struct JobConnectTiles Extends IJob
Public
Connects adjacent tiles together.
This only creates connections between tiles. Connections internal to a tile should be handled by JobCalculateTriangleConnections.
Use the ScheduleBatch method to connect a bunch of tiles efficiently using maximum parallelism.
Public Methods
Execute
()
Public
Public Static Methods
ScheduleBatch
(tilesHandle, dependency, tileRect, tileWorldSize, maxTileConnectionEdgeDistance)
Schedule jobs to connect all the given tiles with each other while exploiting as much parallelism as possible.
Public
Static
ScheduleRecalculateBorders
(tilesHandle, dependency, tileRect, innerRect, tileWorldSize, maxTileConnectionEdgeDistance)
Schedule jobs to connect all the given tiles inside innerRect with tiles that are outside it, while exploiting as much parallelism as possible.
Public
Static
Public Variables
coordinateSum
Public
direction
Public
maxTileConnectionEdgeDistance
Maximum vertical distance between two tiles to create a connection between them.
Public
tileRect
Public
tileWorldSize
Public
zOffset
Public
zStride
Public
Public Static Variables
ConnectTilesMarker
Public
Static
Readonly