pob

package
v0.0.0-...-a43b89a Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0, MIT Imports: 7 Imported by: 0

Documentation

Index

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")
)

Variables

This section is empty.

Functions

func CompressEncode

func CompressEncode(xml string) (string, error)

func DecodeDecompress

func DecodeDecompress(code string) (string, error)

Types

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        string           `xml:"className,attr"`       // TODO Enum
	AscendClassName  string           `xml:"ascendClassName,attr"` // TODO Enum
	Level            int              `xml:"level,attr"`
	MainSocketGroup  int              `xml:"mainSocketGroup,attr"`
	TargetVersion    data.GameVersion `xml:"targetVersion,attr"`

	PlayerStats []PlayerStat `xml:"PlayerStat"`
}

type BuildViewMode

type BuildViewMode string

type Calcs

type Calcs struct {
	Inputs   []Input   `xml:"Input"`
	Sections []Section `xml:"Section"`
}

type Config

type Config struct {
	Inputs       []Input `xml:"Input"`
	Placeholders []Input `xml:"Placeholder"`
}

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 Input

type Input struct {
	Name    string  `xml:"name,attr"`
	Boolean *bool   `xml:"boolean,attr"`
	Number  *int    `xml:"number,attr"`
	String  *string `xml:"string,attr"`
}

type ItemSet

type ItemSet struct {
	ID                 string `xml:"id,attr"`
	UseSecondWeaponSet *bool  `xml:"useSecondWeaponSet,attr,omitempty"`

	Slots []Slot `xml:"Slot"`
}

type Items

type Items struct {
	ActiveItemSet      int   `xml:"activeItemSet,attr"`
	UseSecondWeaponSet *bool `xml:"useSecondWeaponSet,attr,omitempty"`

	ItemSets []ItemSet `xml:"ItemSet"`
}

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) DeleteAllSocketGroups

func (b *PathOfBuilding) DeleteAllSocketGroups()

func (*PathOfBuilding) DeleteSocketGroup

func (b *PathOfBuilding) DeleteSocketGroup(index int)

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(ascendancy string)

func (*PathOfBuilding) SetClass

func (b *PathOfBuilding) SetClass(clazz string)

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 PlayerStat struct {
	Value float64 `xml:"value,attr"`
	Stat  string  `xml:"stat,attr"`
}

type Results

type Results struct {
	AverageHit     float64
	AverageDamage  float64
	AttackRate     float64
	CastRate       float64
	HitChance      float64
	CritChance     float64
	CritMultiplier float64
	TotalDPS       float64
	IgniteDPS      float64
	CullingDPS     float64
	AoERadius      float64
	ManaCost       int
}

type Section

type Section struct {
	Collapsed  bool   `xml:"collapsed,attr"`
	ID         string `xml:"id,attr"`
	Subsection string `xml:"subsection,attr"`
}

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"`

	Slot                  string // TODO Slot
	SlotEnabled           bool
	Source                interface{} // TODO Source
	DisplayLabel          string
	DisplaySkillList      interface{}
	DisplaySkillListCalcs interface{}
}

type SkillSet

type SkillSet struct {
	ID int `xml:"id,attr"`

	Skills []Skill `xml:"Skill"`
}

type Skills

type Skills struct {
	SortGemsByDPSField            string `xml:"sortGemsByDPSField,attr"`  // TODO Enum
	ShowSupportGemTypes           string `xml:"showSupportGemTypes,attr"` // TODO Enum
	DefaultGemLevel               *int   `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"`
}

type Slot

type Slot struct {
	ItemID int    `xml:"itemId,attr"`
	Name   string `xml:"name,attr"`
}

type Spec

type Spec struct {
	ClassID        int              `xml:"classID,attr"`       // TODO Enum
	AscendClassID  int              `xml:"ascendClassID,attr"` // TODO Enum
	TreeVersion    data.TreeVersion `xml:"treeVersion,attr"`   // TODO Enum
	Nodes          string           `xml:"nodes,attr"`
	MasteryEffects string           `xml:"masteryEffects,attr"`
	URL            string           `xml:"URL"`
}

type Tree

type Tree struct {
	ActiveSpec int `xml:"activeSpec,attr"`

	Specs []Spec `xml:"Spec"`
}

type TreeView

type TreeView struct {
	ZoomLevel           int     `xml:"zoomLevel,attr"`
	ZoomX               float64 `xml:"zoomX,attr"`
	ZoomY               float64 `xml:"zoomY,attr"`
	SearchStr           string  `xml:"searchStr,attr"`
	ShowHeatMap         *bool   `xml:"showHeatMap,attr,omitempty"`
	ShowStatDifferences bool    `xml:"showStatDifferences,attr"`
}

Jump to

Keyboard shortcuts

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