Documentation
¶
Overview ¶
Package names resolves item, creature, recipe and instance names through the dataset's names.parquet index (see the data repository's docs/schema.md and docs/layout.md), reading only the row groups whose norm range and Bloom filter admit the name. A dataset without the index, and a table the index does not list (quests), are searched by scanning the table's name column.
Index ¶
Constants ¶
const ( Items = "items" Npcs = "npcs" Instances = "instances" Recipes = "recipes" ItemSets = "item_sets" )
Tables the index lists, as its table column spells them.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Match ¶
Match is one named row: its id in the table (items.id, npcs.id, instances.map_id, recipes.spell_id, item_sets.set_id) and its name as the table spells it.
func Find ¶
Find returns up to limit rows of table named text: those whose normalised name equals the normalised text, else those that start with it, in index order. more is true when the limit cut the list. Text with no letter or digit finds nothing.
func ObtainableFirst ¶
ObtainableFirst drops the unobtainable items from a list of item matches when any obtainable one is there, so a search by part of a name never offers a placeholder beside the real item. A list of only unobtainable items is kept, so the tool can say the item cannot be had.