跳转到内容

resolveWang

此内容尚不支持你的语言。

resolveWang(index, corners): number

Defined in: tilemap/autotile.ts:183

Pick the tile whose 4 corner colors match corners ([TL, TR, BR, BL]); when no tile has the exact combination, the nearest by corner-mismatch count is used, so a partial wang set still paints. Returns 0 if the set is empty.

WangIndex

readonly number[]

number