Documentation
¶
Index ¶
- Constants
- Variables
- func CompressEncode(xml string) (string, error)
- func DecodeDecompress(code string) (string, error)
- type AscendancyID
- type AscendancyName
- type Build
- type BuildViewMode
- type Calcs
- type ClassID
- type ClassName
- type Config
- type GameVersion
- type Gem
- type Input
- type Item
- type ItemSet
- type Items
- type OilType
- type PathOfBuilding
- func (b *PathOfBuilding) AddNewSocketGroup()
- func (b *PathOfBuilding) AllocateNodes(nodeIds []int64)
- func (b *PathOfBuilding) DeallocateNodes(nodeIds []int64)
- func (b *PathOfBuilding) DeleteAllSocketGroups()
- func (b *PathOfBuilding) DeleteSocketGroup(index int)
- func (b *PathOfBuilding) GetBooleanOption(name string) bool
- func (b *PathOfBuilding) GetNumberOption(name string) float64
- func (b *PathOfBuilding) GetStringOption(name string) string
- func (b *PathOfBuilding) RemoveConfigOption(name string)
- func (b *PathOfBuilding) SetAscendancy(ascendancyName AscendancyName)
- func (b *PathOfBuilding) SetClass(className ClassName)
- func (b *PathOfBuilding) SetConfigOption(value Input)
- func (b *PathOfBuilding) SetDefaultGemLevel(gemLevel int)
- func (b *PathOfBuilding) SetDefaultGemQuality(gemQuality int)
- func (b *PathOfBuilding) SetLevel(level int)
- func (b *PathOfBuilding) SetMainSocketGroup(mainSocketGroup int)
- func (b *PathOfBuilding) SetMatchGemLevelToCharacterLevel(enabled bool)
- func (b *PathOfBuilding) SetShowAltQualityGems(enabled bool)
- func (b *PathOfBuilding) SetShowSupportGemTypes(gemTypes string)
- func (b *PathOfBuilding) SetSkillGroupName(skillSet int, socketGroup int, label string)
- func (b *PathOfBuilding) SetSocketGroupGems(skillSet int, socketGroup int, gems []Gem)
- func (b *PathOfBuilding) SetSortGemsByDPS(enabled bool)
- func (b *PathOfBuilding) SetSortGemsByDPSField(field string)
- func (b *PathOfBuilding) WithMainSocketGroup(mainSocketGroup int) *PathOfBuilding
- type PlayerStat
- type Results
- type Section
- type Skill
- type SkillSet
- type Skills
- type Slot
- type Spec
- type Tree
- type TreeVersion
- type TreeView
Constants ¶
View Source
const ( ViewModeTree = BuildViewMode("TREE") ViewModeItems = BuildViewMode("ITEMS") ViewModeImport = BuildViewMode("IMPORT") ViewModeNotes = BuildViewMode("NOTES") ViewModeConfig = BuildViewMode("CONFIG") ViewModeSkills = BuildViewMode("SKILLS") ViewModeCalc = BuildViewMode("CALC") )
View Source
const (
GameVersion3_0 = GameVersion("3_0")
)
View Source
const LiveTargetVersion = GameVersion3_0
Variables ¶
View Source
var AscendancyNameByID = map[AscendancyID]AscendancyName{ Ascendant: "Ascendant", Assassin: "Assassin", Berserker: "Berserker", Champion: "Champion", Chieftain: "Chieftain", Deadeye: "Deadeye", Elementalist: "Elementalist", Gladiator: "Gladiator", Guardian: "Guardian", Hierophant: "Hierophant", Inquisitor: "Inquisitor", Juggernaut: "Juggernaut", Necromancer: "Necromancer", Occultist: "Occultist", Pathfinder: "Pathfinder", Raider: "Raider", Saboteur: "Saboteur", Slayer: "Slayer", Trickster: "Trickster", }
View Source
var ClassAscendancies = map[ClassID][]AscendancyID{ Scion: {Ascendant}, Marauder: {Juggernaut, Berserker, Chieftain}, Ranger: {Deadeye, Pathfinder, Raider}, Witch: {Elementalist, Necromancer, Occultist}, Duelist: {Slayer, Gladiator, Champion}, Templar: {Hierophant, Inquisitor, Guardian}, Shadow: {Assassin, Trickster, Saboteur}, }
Functions ¶
func CompressEncode ¶
func DecodeDecompress ¶
Types ¶
type AscendancyID ¶
type AscendancyID int
const ( Ascendant AscendancyID = iota Assassin Berserker Champion Chieftain Deadeye Elementalist Gladiator Guardian Hierophant Inquisitor Juggernaut Necromancer Occultist Pathfinder Raider Saboteur Slayer Trickster )
type AscendancyName ¶
type AscendancyName string
type Build ¶
type Build struct { PantheonMinorGod string `xml:"pantheonMinorGod,attr"` // TODO Enum PantheonMajorGod string `xml:"pantheonMajorGod,attr"` // TODO Enum Bandit string `xml:"bandit,attr"` // TODO Enum ViewMode BuildViewMode `xml:"viewMode,attr"` ClassName ClassName `xml:"className,attr"` AscendClassName AscendancyName `xml:"ascendClassName,attr"` Level int `xml:"level,attr"` MainSocketGroup int `xml:"mainSocketGroup,attr"` TargetVersion GameVersion `xml:"targetVersion,attr"` PassiveNodes []int64 PlayerStats []PlayerStat `xml:"PlayerStat" crystalline:"not_nil"` }
type BuildViewMode ¶
type BuildViewMode string
type GameVersion ¶
type GameVersion string
type Gem ¶
type Gem struct { Quality int `xml:"quality,attr"` SkillPart int `xml:"skillPart,attr"` EnableGlobal2 bool `xml:"enableGlobal2,attr"` SkillPartCalcs int `xml:"skillPartCalcs,attr"` QualityID string `xml:"qualityId,attr"` GemID string `xml:"gemId,attr"` Enabled bool `xml:"enabled,attr"` Count int `xml:"count,attr"` EnableGlobal1 bool `xml:"enableGlobal1,attr"` NameSpec string `xml:"nameSpec,attr"` Level int `xml:"level,attr"` SkillID string `xml:"skillId,attr"` SkillMinionItemSet int `xml:"skillMinionItemSet,attr"` SkillMinion string `xml:"skillMinion,attr"` }
type PathOfBuilding ¶
type PathOfBuilding struct { Build Build `xml:"Build"` Tree Tree `xml:"Tree"` Calcs Calcs `xml:"Calcs"` Notes string `xml:"Notes"` Items Items `xml:"Items"` Skills Skills `xml:"Skills"` TreeView TreeView `xml:"TreeView"` Config Config `xml:"Config"` }
func (*PathOfBuilding) AddNewSocketGroup ¶
func (b *PathOfBuilding) AddNewSocketGroup()
func (*PathOfBuilding) AllocateNodes ¶
func (b *PathOfBuilding) AllocateNodes(nodeIds []int64)
func (*PathOfBuilding) DeallocateNodes ¶
func (b *PathOfBuilding) DeallocateNodes(nodeIds []int64)
func (*PathOfBuilding) DeleteAllSocketGroups ¶
func (b *PathOfBuilding) DeleteAllSocketGroups()
func (*PathOfBuilding) DeleteSocketGroup ¶
func (b *PathOfBuilding) DeleteSocketGroup(index int)
func (*PathOfBuilding) GetBooleanOption ¶
func (b *PathOfBuilding) GetBooleanOption(name string) bool
func (*PathOfBuilding) GetNumberOption ¶
func (b *PathOfBuilding) GetNumberOption(name string) float64
func (*PathOfBuilding) GetStringOption ¶
func (b *PathOfBuilding) GetStringOption(name string) string
func (*PathOfBuilding) RemoveConfigOption ¶
func (b *PathOfBuilding) RemoveConfigOption(name string)
func (*PathOfBuilding) SetAscendancy ¶
func (b *PathOfBuilding) SetAscendancy(ascendancyName AscendancyName)
func (*PathOfBuilding) SetClass ¶
func (b *PathOfBuilding) SetClass(className ClassName)
func (*PathOfBuilding) SetConfigOption ¶
func (b *PathOfBuilding) SetConfigOption(value Input)
func (*PathOfBuilding) SetDefaultGemLevel ¶
func (b *PathOfBuilding) SetDefaultGemLevel(gemLevel int)
func (*PathOfBuilding) SetDefaultGemQuality ¶
func (b *PathOfBuilding) SetDefaultGemQuality(gemQuality int)
func (*PathOfBuilding) SetLevel ¶
func (b *PathOfBuilding) SetLevel(level int)
func (*PathOfBuilding) SetMainSocketGroup ¶
func (b *PathOfBuilding) SetMainSocketGroup(mainSocketGroup int)
func (*PathOfBuilding) SetMatchGemLevelToCharacterLevel ¶
func (b *PathOfBuilding) SetMatchGemLevelToCharacterLevel(enabled bool)
func (*PathOfBuilding) SetShowAltQualityGems ¶
func (b *PathOfBuilding) SetShowAltQualityGems(enabled bool)
func (*PathOfBuilding) SetShowSupportGemTypes ¶
func (b *PathOfBuilding) SetShowSupportGemTypes(gemTypes string)
func (*PathOfBuilding) SetSkillGroupName ¶
func (b *PathOfBuilding) SetSkillGroupName(skillSet int, socketGroup int, label string)
func (*PathOfBuilding) SetSocketGroupGems ¶
func (b *PathOfBuilding) SetSocketGroupGems(skillSet int, socketGroup int, gems []Gem)
func (*PathOfBuilding) SetSortGemsByDPS ¶
func (b *PathOfBuilding) SetSortGemsByDPS(enabled bool)
func (*PathOfBuilding) SetSortGemsByDPSField ¶
func (b *PathOfBuilding) SetSortGemsByDPSField(field string)
func (*PathOfBuilding) WithMainSocketGroup ¶
func (b *PathOfBuilding) WithMainSocketGroup(mainSocketGroup int) *PathOfBuilding
type PlayerStat ¶
type Skill ¶
type Skill struct { MainActiveSkillCalcs int `xml:"mainActiveSkillCalcs,attr"` MainActiveSkill int `xml:"mainActiveSkill,attr"` Label string `xml:"label,attr"` Enabled bool `xml:"enabled,attr"` IncludeInFullDPS *bool `xml:"includeInFullDPS,attr,omitempty"` Gems []Gem `xml:"Gem" crystalline:"not_nil"` Slot string // TODO Slot SlotEnabled bool Source interface{} // TODO Source DisplayLabel string DisplaySkillList interface{} DisplaySkillListCalcs interface{} }
type Skills ¶
type Skills struct { SortGemsByDPSField string `xml:"sortGemsByDPSField,attr"` // TODO Enum ShowSupportGemTypes string `xml:"showSupportGemTypes,attr"` // TODO Enum DefaultGemLevel *string `xml:"defaultGemLevel,attr,omitempty"` MatchGemLevelToCharacterLevel bool `xml:"matchGemLevelToCharacterLevel,attr"` ShowAltQualityGems bool `xml:"showAltQualityGems,attr"` DefaultGemQuality *int `xml:"defaultGemQuality,attr,omitempty"` ActiveSkillSet int `xml:"activeSkillSet,attr"` SortGemsByDPS bool `xml:"sortGemsByDPS,attr"` SkillSets []SkillSet `xml:"SkillSet" crystalline:"not_nil"` }
type Spec ¶
type Spec struct { ClassID ClassID `xml:"classID,attr"` AscendClassID AscendancyID `xml:"ascendClassID,attr"` TreeVersion TreeVersion `xml:"treeVersion,attr"` // TODO Enum NodesAttr string `xml:"nodes,attr"` MasteryEffects string `xml:"masteryEffects,attr"` URL string `xml:"URL"` }
type TreeVersion ¶
type TreeVersion string
Click to show internal directories.
Click to hide internal directories.