Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ByID = map[int32]Item{}
View Source
var ByName = map[string]Item{}
View Source
var Enchants = []Enchant{}/* 223 elements not displayed */
View Source
var EnchantsByItemByID = map[proto.ItemType]map[int32]Enchant{}
View Source
var Gems = []Gem{}/* 545 elements not displayed */
View Source
var GemsByID = map[int32]Gem{}
View Source
var Items = []Item{}/* 8546 elements not displayed */
Functions ¶
func EquipmentSpecFromJsonString ¶
func EquipmentSpecFromJsonString(jsonString string) *proto.EquipmentSpec
Types ¶
type Enchant ¶
type Enchant struct { EffectID int32 // Used by UI to apply effect to tooltip ItemID int32 // ID of the enchant item. SpellID int32 // ID of the enchant spell. Name string Quality proto.ItemQuality Bonus stats.Stats ItemType proto.ItemType // Which slot the enchant goes on. EnchantType proto.EnchantType // Additional category when ItemType isn't enough. Phase int32 RequiredProfession proto.Profession // Used by the UI to filter which enchants are shown. ClassAllowlist []proto.Class }
type Equipment ¶
type Equipment [proto.ItemSlot_ItemSlotRanged + 1]Item
func NewEquipmentSet ¶
func NewEquipmentSet(equipSpec EquipmentSpec) Equipment
func ProtoToEquipment ¶
func ProtoToEquipment(es *proto.EquipmentSpec) Equipment
func (*Equipment) ToEquipmentSpecProto ¶
func (equipment *Equipment) ToEquipmentSpecProto() *proto.EquipmentSpec
type EquipmentSpec ¶
type EquipmentSpec [proto.ItemSlot_ItemSlotRanged + 1]ItemSpec
Structs used for looking up items/gems/enchants
func ProtoToEquipmentSpec ¶
func ProtoToEquipmentSpec(es *proto.EquipmentSpec) EquipmentSpec
type Gem ¶
type Item ¶
type Item struct { ID int32 WowheadID int32 Heroic bool Type proto.ItemType ArmorType proto.ArmorType // Weapon Stats WeaponType proto.WeaponType HandType proto.HandType RangedWeaponType proto.RangedWeaponType WeaponDamageMin float64 WeaponDamageMax float64 SwingSpeed float64 // Used by the UI to filter which items are shown. ClassAllowlist []proto.Class Name string SourceZone string SourceDrop string Stats stats.Stats // Stats applied to wearer Phase byte Quality proto.ItemQuality Unique bool Ilvl int32 SetName string // Empty string if not part of a set. RequiredProfession proto.Profession // Hidden variable used for a few obscure mechanics (Seal of Righteousness). // Intuitively, this is a measure of the difference between the expected stats // and the actual stats of an item, e.g. decreased weapon DPS on caster weapons. QualityModifier float64 GemSockets []proto.GemColor SocketBonus stats.Stats // Modified for each instance of the item. Gems []Gem Enchant Enchant }
func (Item) ToItemSpecProto ¶
type ItemStringSpec ¶
Like ItemSpec, but uses names for reference instead of ID.
Click to show internal directories.
Click to hide internal directories.