Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getTileId(index:)
Returns the tile coordinates ID of the tile with index index
.
final func getTileId(index: Int32) -> Vector2i
Other members in extension
Type members
Instance members
func getAlternativeTileId(atlasCoords: Vector2i, index: Int32
) -> Int32 Returns the alternative ID for the tile with coordinates ID
atlasCoords
at indexindex
.func getAlternativeTilesCount(atlasCoords: Vector2i
) -> Int32 Returns the number of alternatives tiles for the coordinates ID
atlasCoords
.func getTilesCount(
) -> Int32 Returns how many tiles this atlas source defines (not including alternative tiles).
func hasAlternativeTile(atlasCoords: Vector2i, alternativeTile: Int32
) -> Bool Returns if the base tile at coordinates
atlasCoords
has an alternative with IDalternativeTile
.func hasTile(atlasCoords: Vector2i
) -> Bool Returns if this atlas has a tile with coordinates ID
atlasCoords
.