Function findTile

  • Low-level function for looking up a TileID or leaf directory inside a directory.

    Parameters

    • entries: Entry[]

      the directory entries

    • tileID: number

      the tile ID

    Returns Entry | null

    the entry associated with the tile, or null if not found