Function TileSet.getLastUnusedTileId

Returns the ID following the last currently used ID, useful when creating a new tile.

long getLastUnusedTileId() nothrow @nogc const;