database

package
v0.0.250 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const EndTimeEchoLootString = `` /* 1177-byte string literal not displayed */

Variables

View Source
var AtlasLootDungeonToRaidDifficulty = map[string]string{
	"RF_DIFF":     "RAID25RF_DIFF",
	"NORMAL_DIFF": "RAID25_DIFF",
	"HEROIC_DIFF": "RAID25H_DIFF",
}
View Source
var AtlasLootFactions = map[string]proto.Faction{
	"FACTIONS_CONTENT":       proto.Faction_Unknown,
	"FACTIONS_ALLI_CONTENT":  proto.Faction_Alliance,
	"FACTIONS_HORDE_CONTENT": proto.Faction_Horde,
}
View Source
var ConsumableAllowList = []int32{

	62649,
	62290,

	13442,

	20520,
	46376,
	45568,
	54221,
}

Item Ids of consumables to allow

View Source
var ConsumableDenyList = []int32{
	57099,
}
View Source
var ConsumableOverrides = []*proto.Consumable{
	{Id: 62290, BuffsMainStat: true, Stats: stats.Stats{stats.Stamina: 90}.ToProtoArray()},
	{Id: 62649, BuffsMainStat: true, Stats: stats.Stats{stats.Stamina: 90}.ToProtoArray()},
}
View Source
var DatabasePath string
View Source
var DenyListNameRegexes = []*regexp.Regexp{
	regexp.MustCompile(`30 Epic`),
	regexp.MustCompile(`130 Epic`),
	regexp.MustCompile(`63 Blue`),
	regexp.MustCompile(`63 Green`),
	regexp.MustCompile(`66 Epic`),
	regexp.MustCompile(`90 Epic`),
	regexp.MustCompile(`90 Green`),
	regexp.MustCompile(`Boots 1`),
	regexp.MustCompile(`Boots 2`),
	regexp.MustCompile(`Boots 3`),
	regexp.MustCompile(`Bracer 1`),
	regexp.MustCompile(`Bracer 2`),
	regexp.MustCompile(`Bracer 3`),
	regexp.MustCompile(`DB\d`),
	regexp.MustCompile(`DEPRECATED`),
	regexp.MustCompile(`OLD`),
	regexp.MustCompile(`Deprecated`),
	regexp.MustCompile(`Deprecated: Keanna`),
	regexp.MustCompile(`Indalamar`),
	regexp.MustCompile(`Monster -`),
	regexp.MustCompile(`NEW`),
	regexp.MustCompile(`PH`),
	regexp.MustCompile(`QR XXXX`),
	regexp.MustCompile(`TEST`),
	regexp.MustCompile(`Test`),
	regexp.MustCompile(`Enchant Template`),
	regexp.MustCompile(`Arcane Amalgamation`),
	regexp.MustCompile(`Deleted`),
	regexp.MustCompile(`DELETED`),
	regexp.MustCompile(`zOLD`),
	regexp.MustCompile(`Archaic Spell`),
	regexp.MustCompile(`Well Repaired`),
}

If any of these match the item name, don't include it.

View Source
var EnchantOverrides = []*proto.UIEnchant{}
View Source
var ExtraItemIcons = []int32{}/* 117 elements not displayed */

Item icons to include in the DB, so they don't need to be separately loaded in the UI.

View Source
var GemAllowList = map[int32]struct{}{}
View Source
var GemDenyList = map[int32]struct{}{

	32735: {},
	34142: {},
	34143: {},
	35489: {},
	37430: {},
	38545: {},
	38546: {},
	38547: {},
	38548: {},
	38549: {},
	38550: {},
	63696: {},
	63697: {},
}
View Source
var GemOverrides = []*proto.UIGem{
	{Id: 33131, Stats: stats.Stats{stats.AttackPower: 32, stats.RangedAttackPower: 32}.ToProtoArray()},
}

Allows manual overriding for Gem fields in case WowHead is wrong.

View Source
var ItemAllowList = map[int32]struct{}{

	27510: {},
	27802: {},
	27909: {},
	28231: {},
	28349: {},

	29309: {},

	31026: {},
	31027: {},
	31028: {},
	31029: {},
	31030: {},
	34448: {},
	34558: {},
	34575: {},

	34677: {},

	45703: {},
}

Keep these sorted by item ID.

View Source
var ItemDamageByTableAndItemLevel = make(map[string]map[int]dbc.ItemDamageTable)
View Source
var ItemDenyList = map[int32]struct{}{}/* 296 elements not displayed */

Keep these sorted by item ID.

View Source
var ItemOverrides = []*proto.UIItem{}/* 142 elements not displayed */
View Source
var OtherItemIdsToFetch = []string{

	"211817",
	"211844",
	"211847",
	"211850",
	"211851",
}
View Source
var RawRandomSuffixes []dbc.RandomSuffix
View Source
var RawRandomSuffixesById map[int]dbc.RandomSuffix
View Source
var SharedSpellsIcons = []int32{}/* 124 elements not displayed */

Raid buffs / debuffs

Functions

func CacheBy added in v0.0.232

func CacheBy[T any, K comparable](items []T, keyFunc func(T) K) map[K]T

func GenerateProtos added in v0.0.232

func GenerateProtos()

func GenerateTalentJsonFromDB added in v0.0.232

func GenerateTalentJsonFromDB(dbHelper *DBHelper) error

func GetBestRegexIntValue

func GetBestRegexIntValue(srcStr string, patterns []*regexp.Regexp, matchIdx int) int

func GetIconName added in v0.0.232

func GetIconName(artPaths map[int]string, fdid int) string

func GetRegexIntValue

func GetRegexIntValue(srcStr string, pattern *regexp.Regexp, matchIdx int) int

func GetRegexStringValue

func GetRegexStringValue(srcStr string, pattern *regexp.Regexp, matchIdx int) string

func LoadAndWriteArmorLocation added in v0.0.232

func LoadAndWriteArmorLocation(dbHelper *DBHelper, inputsDir string) (map[int]dbc.ArmorLocation, error)

func LoadAndWriteConsumables added in v0.0.232

func LoadAndWriteConsumables(dbHelper *DBHelper, inputsDir string) ([]dbc.Consumable, error)

func LoadAndWriteEnchantDescriptions added in v0.0.232

func LoadAndWriteEnchantDescriptions(outputPath string, db *WowDatabase, instance *dbc.DBC) error

func LoadAndWriteItemArmorQuality added in v0.0.232

func LoadAndWriteItemArmorQuality(dbHelper *DBHelper, inputsDir string) (map[int]dbc.ItemArmorQuality, error)

func LoadAndWriteItemArmorShield added in v0.0.232

func LoadAndWriteItemArmorShield(dbHelper *DBHelper, inputsDir string) (map[int]dbc.ItemArmorShield, error)

func LoadAndWriteItemArmorTotal added in v0.0.232

func LoadAndWriteItemArmorTotal(dbHelper *DBHelper, inputsDir string) (map[int]dbc.ItemArmorTotal, error)

func LoadAndWriteItemDamageTables added in v0.0.232

func LoadAndWriteItemDamageTables(dbHelper *DBHelper, inputsDir string) (map[string]map[int]dbc.ItemDamageTable, error)

func LoadAndWriteItemEffects added in v0.0.232

func LoadAndWriteItemEffects(dbHelper *DBHelper, inputsDir string) ([]dbc.ItemEffect, error)

func LoadAndWriteItemStatEffects added in v0.0.232

func LoadAndWriteItemStatEffects(dbHelper *DBHelper, inputsDir string) ([]dbc.ItemStatEffect, error)

func LoadAndWriteRandomPropAllocations added in v0.0.232

func LoadAndWriteRandomPropAllocations(dbHelper *DBHelper, inputsDir string) (map[int32]RandPropAllocationRow, error)

func LoadAndWriteRawEnchants added in v0.0.232

func LoadAndWriteRawEnchants(dbHelper *DBHelper, inputsDir string) ([]dbc.Enchant, error)

func LoadAndWriteRawGems added in v0.0.232

func LoadAndWriteRawGems(dbHelper *DBHelper, inputsDir string) ([]dbc.Gem, error)

func LoadAndWriteRawItems added in v0.0.232

func LoadAndWriteRawItems(dbHelper *DBHelper, filter string, inputsDir string) ([]dbc.Item, error)

func LoadAndWriteRawRandomSuffixes added in v0.0.232

func LoadAndWriteRawRandomSuffixes(dbHelper *DBHelper, inputsDir string) ([]dbc.RandomSuffix, error)

func LoadAndWriteRawSpellEffects added in v0.0.232

func LoadAndWriteRawSpellEffects(dbHelper *DBHelper, inputsDir string) (map[int]map[int]dbc.SpellEffect, error)

func LoadAndWriteSpells added in v0.0.232

func LoadAndWriteSpells(dbHelper *DBHelper, inputsDir string) ([]dbc.Spell, error)

func LoadArtTexturePaths added in v0.0.232

func LoadArtTexturePaths(filePath string) (map[int]string, error)

func LoadRows added in v0.0.232

func LoadRows[T any](db *sql.DB, query string, scanFunc func(*sql.Rows) (T, error), args ...interface{}) ([]T, error)

func LoadSpellIcons added in v0.0.232

func LoadSpellIcons(dbHelper *DBHelper) (map[int]SpellIcon, error)

func ParseRandomSuffixOptions added in v0.0.232

func ParseRandomSuffixOptions(optionsString sql.NullString) ([]int32, error)

func RunOverrides added in v0.0.232

func RunOverrides(dbHelper *DBHelper, overridesFolder string) error

func ScanArmorLocation added in v0.0.232

func ScanArmorLocation(rows *sql.Rows) (dbc.ArmorLocation, error)

func ScanConsumable added in v0.0.232

func ScanConsumable(rows *sql.Rows) (dbc.Consumable, error)

func ScanEnchantsTable added in v0.0.232

func ScanEnchantsTable(rows *sql.Rows) (dbc.Enchant, error)

func ScanGemTable added in v0.0.232

func ScanGemTable(rows *sql.Rows) (dbc.Gem, error)

ItemDamage tables

func ScanItemArmorQualityTable added in v0.0.232

func ScanItemArmorQualityTable(rows *sql.Rows) (dbc.ItemArmorQuality, error)

func ScanItemArmorShieldTable added in v0.0.232

func ScanItemArmorShieldTable(rows *sql.Rows) (dbc.ItemArmorShield, error)

func ScanItemArmorTotalTable added in v0.0.232

func ScanItemArmorTotalTable(rows *sql.Rows) (dbc.ItemArmorTotal, error)

func ScanItemDamageTable added in v0.0.232

func ScanItemDamageTable(rows *sql.Rows) (dbc.ItemDamageTable, error)

func ScanItemEffect added in v0.0.232

func ScanItemEffect(rows *sql.Rows) (dbc.ItemEffect, error)

func ScanItemStatEffects added in v0.0.232

func ScanItemStatEffects(rows *sql.Rows) (dbc.ItemStatEffect, error)

func ScanRawItemData added in v0.0.232

func ScanRawItemData(rows *sql.Rows) (dbc.Item, error)

func ScanRawRandomSuffix added in v0.0.232

func ScanRawRandomSuffix(rows *sql.Rows) (dbc.RandomSuffix, error)

ScanRawRandomSuffix scans one row from the query result into a RawRandomSuffix struct.

func ScanSpellEffect added in v0.0.232

func ScanSpellEffect(rows *sql.Rows) (dbc.SpellEffect, error)

func ScanSpells added in v0.0.232

func ScanSpells(rows *sql.Rows) (dbc.Spell, error)

Types

type BlizzardAuthResponse

type BlizzardAuthResponse struct {
	AccessToken string `json:"access_token"`
}

type BlizzardItemResponse

type BlizzardItemResponse struct {
	ID   int    `json:"id"`
	Name string `json:"name"`

	Quality struct {
		Type string `json:"type"`
	} `json:"quality"`

	ItemClass struct {
		Id int `json:"id"`
	} `json:"item_class"`

	ItemSubclass struct {
		Id int `json:"id"`
	} `json:"item_subclass"`

	InventoryType struct {
		Type string `json:"type"`
	} `json:"inventory_type"`

	PreviewItem struct {
		Armor struct {
			Value int `json:"value"`
		} `json:"armor"`

		Stats []struct {
			Type struct {
				Type string `json:"type"`
			} `json:"type"`
			Value int `json:"value"`
		} `json:"stats"`
	} `json:"preview_item"`
}

There are more fields, these are just the ones we care about

func (BlizzardItemResponse) GetStatValue

func (item BlizzardItemResponse) GetStatValue(statType string) int

type ClassData added in v0.0.232

type ClassData struct {
	ClassName          string
	LowerCaseClassName string
	FileName           string
	Talents            []TalentConfig
	TalentTabs         []TalentTabConfig
	GlyphsPrime        []Glyph
	GlyphsMajor        []Glyph
	GlyphsMinor        []Glyph
}

type DBHelper added in v0.0.232

type DBHelper struct {
	// contains filtered or unexported fields
}

func NewDBHelper added in v0.0.232

func NewDBHelper() (*DBHelper, error)

func (*DBHelper) Close added in v0.0.232

func (d *DBHelper) Close() error

type EnchantDBKey

type EnchantDBKey struct {
	EffectID int32
	ItemID   int32
	SpellID  int32
}

func EnchantToDBKey

func EnchantToDBKey(enchant *proto.UIEnchant) EnchantDBKey

type Glyph added in v0.0.232

type Glyph struct {
	EnumName    string
	Name        string
	Description string
	IconUrl     string
	ID          int
}

type ItemResponse

type ItemResponse interface {
	GetName() string
	GetQuality() int
	GetIcon() string
	HasBuff() bool
	TooltipWithoutSetBonus() string
	GetTooltipRegexString(pattern *regexp.Regexp, matchIdx int) string
	GetTooltipRegexValue(pattern *regexp.Regexp, matchIdx int) int
	GetIntValue(pattern *regexp.Regexp) int
	GetStats() stats.Stats
	IsEquippable() bool
	GetItemLevel() int
	GetPhase() int
	GetUnique() bool
	GetItemType() proto.ItemType
	GetArmorType() proto.ArmorType
	GetWeaponType() proto.WeaponType
	GetHandType() proto.HandType
	GetRangedWeaponType() proto.RangedWeaponType
	GetWeaponDamage() (float64, float64)
	GetWeaponSpeed() float64
	GetGemSockets() []proto.GemColor
	GetSocketBonus() stats.Stats
	GetSocketColor() proto.GemColor
	GetGemStats() stats.Stats
	GetItemSetName() string
	IsHeroic() bool
	GetRequiredProfession() proto.Profession
}

type RandPropAllocationRow added in v0.0.232

type RandPropAllocationRow struct {
	Ilvl       int32
	Allocation dbc.RandomPropAllocation
}

func ScanRandPropAllocationRow added in v0.0.232

func ScanRandPropAllocationRow(rows *sql.Rows) (RandPropAllocationRow, error)

type RawGlyph added in v0.0.232

type RawGlyph struct {
	ItemId      int32
	Name        string
	SpellId     int32
	Description string
	GlyphType   int32
	ClassMask   int32
	FDID        int32
}

func LoadGlyphs added in v0.0.232

func LoadGlyphs(dbHelper *DBHelper) ([]RawGlyph, error)

func ScanGlyphs added in v0.0.232

func ScanGlyphs(rows *sql.Rows) (RawGlyph, error)

type RawTalent added in v0.0.232

type RawTalent struct {
	TierID         int
	TalentName     string
	ColumnIndex    int
	ClassMask      int
	SpellRank      string
	PrereqRank     string
	PrereqTalent   string
	TabName        string
	BackgroundFile string
	PrereqRow      sql.NullInt64
	PrereqCol      sql.NullInt64
}

func LoadTalents added in v0.0.232

func LoadTalents(dbHelper *DBHelper) ([]RawTalent, error)

func ScanTalent added in v0.0.232

func ScanTalent(rows *sql.Rows) (RawTalent, error)

type SpellIcon added in v0.0.232

type SpellIcon struct {
	SpellID int
	FDID    int
	HasBuff bool
	Name    string
}

func ScanSpellIcon added in v0.0.232

func ScanSpellIcon(rows *sql.Rows) (SpellIcon, error)

type TalentConfig added in v0.0.232

type TalentConfig struct {
	FieldName        string          `json:"fieldName"`
	FancyName        string          `json:"fancyName"`
	Location         TalentLocation  `json:"location"`
	SpellIds         []int           `json:"spellIds"`
	MaxPoints        int             `json:"maxPoints"`
	PrereqLocation   *TalentLocation `json:"prereqLocation,omitempty"`
	TabName          string          `json:"tabName"`
	ProtoFieldNumber int
}

type TalentLocation added in v0.0.232

type TalentLocation struct {
	RowIdx int `json:"rowIdx"`
	ColIdx int `json:"colIdx"`
}

type TalentTabConfig added in v0.0.232

type TalentTabConfig struct {
	Name          string         `json:"name"`
	BackgroundUrl string         `json:"backgroundUrl"`
	Talents       []TalentConfig `json:"talents"`
}

type TooltipManager

type TooltipManager struct {
	FilePath   string
	UrlPattern string
}

Generic class for fetching tooltip info from the web.

func (*TooltipManager) Fetch

func (tm *TooltipManager) Fetch(minId, maxId int32, otherIds []string)

func (*TooltipManager) FetchFromWeb

func (tm *TooltipManager) FetchFromWeb(idsToFetch []string) map[string]string

func (*TooltipManager) Read

func (tm *TooltipManager) Read() map[int32]string

type WowDatabase

type WowDatabase struct {
	Items          map[int32]*proto.UIItem
	RandomSuffixes map[int32]*proto.ItemRandomSuffix
	Enchants       map[EnchantDBKey]*proto.UIEnchant
	Gems           map[int32]*proto.UIGem

	Zones map[int32]*proto.UIZone
	Npcs  map[int32]*proto.UINPC

	ItemIcons    map[int32]*proto.IconData
	SpellIcons   map[int32]*proto.IconData
	ReforgeStats map[int32]*proto.ReforgeStat

	Encounters []*proto.PresetEncounter
	GlyphIDs   []*proto.GlyphID

	Consumables map[int32]*proto.Consumable
	Effects     map[int32]*proto.SpellEffect
}

func NewWowDatabase

func NewWowDatabase() *WowDatabase

func ReadAtlasLootData

func ReadAtlasLootData(dbHelper *DBHelper) *WowDatabase

func ReadDatabaseFromJson

func ReadDatabaseFromJson(jsonStr string) *WowDatabase

func (*WowDatabase) AddItemIcon

func (db *WowDatabase) AddItemIcon(id int32, icon string, name string)

func (*WowDatabase) AddSpellIcon

func (db *WowDatabase) AddSpellIcon(id int32, icon string, name string)

func (*WowDatabase) Clone

func (db *WowDatabase) Clone() *WowDatabase

func (*WowDatabase) MergeConsumable added in v0.0.232

func (db *WowDatabase) MergeConsumable(src *proto.Consumable)

func (*WowDatabase) MergeEffect added in v0.0.232

func (db *WowDatabase) MergeEffect(src *proto.SpellEffect)

func (*WowDatabase) MergeEnchant

func (db *WowDatabase) MergeEnchant(src *proto.UIEnchant)

func (*WowDatabase) MergeEnchants

func (db *WowDatabase) MergeEnchants(arr []*proto.UIEnchant)

func (*WowDatabase) MergeGem

func (db *WowDatabase) MergeGem(src *proto.UIGem)

func (*WowDatabase) MergeGems

func (db *WowDatabase) MergeGems(arr []*proto.UIGem)

func (*WowDatabase) MergeItem

func (db *WowDatabase) MergeItem(src *proto.UIItem)

func (*WowDatabase) MergeItems

func (db *WowDatabase) MergeItems(arr []*proto.UIItem)

func (*WowDatabase) MergeNpc

func (db *WowDatabase) MergeNpc(src *proto.UINPC)

func (*WowDatabase) MergeNpcs

func (db *WowDatabase) MergeNpcs(arr []*proto.UINPC)

func (*WowDatabase) MergeZone

func (db *WowDatabase) MergeZone(src *proto.UIZone)

func (*WowDatabase) MergeZones

func (db *WowDatabase) MergeZones(arr []*proto.UIZone)

func (*WowDatabase) ToUIProto

func (db *WowDatabase) ToUIProto() *proto.UIDatabase

func (*WowDatabase) WriteBinary

func (db *WowDatabase) WriteBinary(binFilePath string)

func (*WowDatabase) WriteBinaryAndJson

func (db *WowDatabase) WriteBinaryAndJson(binFilePath, jsonFilePath string)

func (*WowDatabase) WriteJson

func (db *WowDatabase) WriteJson(jsonFilePath string)

type WowheadItemResponse

type WowheadItemResponse struct {
	ID      int32
	Name    string `json:"name"`
	Quality int    `json:"quality"`
	Icon    string `json:"icon"`
	Tooltip string `json:"tooltip"`
	Buff    string `json:"buff"`
}

func NewWowheadItemResponse

func NewWowheadItemResponse(id int32, tooltip string) WowheadItemResponse

func (WowheadItemResponse) GetArmorType

func (item WowheadItemResponse) GetArmorType() proto.ArmorType

func (WowheadItemResponse) GetArmorValues

func (item WowheadItemResponse) GetArmorValues() (int, int)

func (WowheadItemResponse) GetGemSockets

func (item WowheadItemResponse) GetGemSockets() []proto.GemColor

func (WowheadItemResponse) GetGemStats

func (item WowheadItemResponse) GetGemStats() stats.Stats

func (WowheadItemResponse) GetHandType

func (item WowheadItemResponse) GetHandType() proto.HandType

func (WowheadItemResponse) GetIcon

func (item WowheadItemResponse) GetIcon() string

func (WowheadItemResponse) GetIntValue

func (item WowheadItemResponse) GetIntValue(pattern *regexp.Regexp) int

func (WowheadItemResponse) GetItemLevel

func (item WowheadItemResponse) GetItemLevel() int

func (WowheadItemResponse) GetItemSetName

func (item WowheadItemResponse) GetItemSetName() string

func (WowheadItemResponse) GetItemType

func (item WowheadItemResponse) GetItemType() proto.ItemType

func (WowheadItemResponse) GetName

func (item WowheadItemResponse) GetName() string

func (WowheadItemResponse) GetPhase

func (item WowheadItemResponse) GetPhase() int

func (WowheadItemResponse) GetQuality

func (item WowheadItemResponse) GetQuality() int

func (WowheadItemResponse) GetRangedWeaponType

func (item WowheadItemResponse) GetRangedWeaponType() proto.RangedWeaponType

func (WowheadItemResponse) GetRequiredProfession

func (item WowheadItemResponse) GetRequiredProfession() proto.Profession

func (WowheadItemResponse) GetSocketBonus

func (item WowheadItemResponse) GetSocketBonus() stats.Stats

func (WowheadItemResponse) GetSocketColor

func (item WowheadItemResponse) GetSocketColor() proto.GemColor

func (WowheadItemResponse) GetStats

func (item WowheadItemResponse) GetStats() stats.Stats

func (WowheadItemResponse) GetTooltipRegexString

func (item WowheadItemResponse) GetTooltipRegexString(pattern *regexp.Regexp, matchIdx int) string

func (WowheadItemResponse) GetTooltipRegexValue

func (item WowheadItemResponse) GetTooltipRegexValue(pattern *regexp.Regexp, matchIdx int) int

func (WowheadItemResponse) GetUnique

func (item WowheadItemResponse) GetUnique() bool

func (WowheadItemResponse) GetWeaponDamage

func (item WowheadItemResponse) GetWeaponDamage() (float64, float64)

Returns min/max of weapon damage

func (WowheadItemResponse) GetWeaponSpeed

func (item WowheadItemResponse) GetWeaponSpeed() float64

func (WowheadItemResponse) GetWeaponType

func (item WowheadItemResponse) GetWeaponType() proto.WeaponType

func (WowheadItemResponse) HasBuff

func (item WowheadItemResponse) HasBuff() bool

func (WowheadItemResponse) IsEquippable

func (item WowheadItemResponse) IsEquippable() bool

func (WowheadItemResponse) IsGem

func (item WowheadItemResponse) IsGem() bool

func (WowheadItemResponse) IsHeroic

func (item WowheadItemResponse) IsHeroic() bool

func (WowheadItemResponse) IsPattern

func (item WowheadItemResponse) IsPattern() bool

func (WowheadItemResponse) IsRandomEnchant

func (item WowheadItemResponse) IsRandomEnchant() bool

func (WowheadItemResponse) IsScalableArmorSlot

func (item WowheadItemResponse) IsScalableArmorSlot() bool

func (WowheadItemResponse) ToGemProto

func (item WowheadItemResponse) ToGemProto() *proto.UIGem

func (WowheadItemResponse) ToItemProto

func (item WowheadItemResponse) ToItemProto() *proto.UIItem

func (WowheadItemResponse) TooltipWithoutSetBonus

func (item WowheadItemResponse) TooltipWithoutSetBonus() string

type WowheadReforgeStat

type WowheadReforgeStat struct {
	ReforgeID         int     `json:"id"` // Reforge ID used by game
	FromID            int     `json:"i1"` // WH Stat ID to reforge from
	FromStat          string  `json:"s1"` // WH Stat string to reforge from
	ToID              int     `json:"i2"` // WH Stat ID to reforge to
	ToStat            string  `json:"s2"` // WH Stat string to reforge to
	ReforgeMultiplier float64 `json:"v"`  // Multiplier for reforge, always 0.4
}

type WowheadReforgeStats

type WowheadReforgeStats map[string]WowheadReforgeStat

func ParseWowheadReforgeStats

func ParseWowheadReforgeStats(contents string) WowheadReforgeStats

func (WowheadReforgeStats) ToProto

func (reforgeStats WowheadReforgeStats) ToProto() map[int32]*proto.ReforgeStat

type WowheadTooltipManager

type WowheadTooltipManager struct {
	TooltipManager
}

func NewWowheadItemTooltipManager

func NewWowheadItemTooltipManager(filePath string) *WowheadTooltipManager

func NewWowheadSpellTooltipManager

func NewWowheadSpellTooltipManager(filePath string) *WowheadTooltipManager

func (*WowheadTooltipManager) Read

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL