Documentation
¶
Index ¶
- Constants
- func CalculateAllocationPaths(version pob.TreeVersion, activeNodes []int64, rootNodes []int64) map[int64]int64
- func CalculatePrunableNodes(version pob.TreeVersion, activeNodes []int64, rootNodes []int64) []int64
- func Expose() *crystalline.Exposer
- func GetRawTree(version pob.TreeVersion) []byte
- func GetStatByIndex(id int) *poe.Stat
- func SetCalcTabElements(elements *ElementWrapper)
- type ElementWrapper
- type GemPart
- type GemType
- type SkillGem
Constants ¶
View Source
const ( GemTypeStrength = GemType("STR") GemTypeDexterity = GemType("DEX") GemTypeIntelligence = GemType("INT") GemTypeNone = GemType("NONE") )
Variables ¶
This section is empty.
Functions ¶
func CalculatePrunableNodes ¶
func CalculatePrunableNodes(version pob.TreeVersion, activeNodes []int64, rootNodes []int64) []int64
TODO: Need some algorithm that figures out which nodes would be disconnected and therefore removed if the target node is removed Important steps: 1a. On allocation calculate and store a list of adjacent nodes that are currently on a path towards a start node (pathsToStart) 1b. Also make sure to check all previously allocated nodes and recalculate any new start paths adjacent nodes 2. On Deallocate start pruning all subtrees connected to the target node that ARE NOT listed in the pathsToStart
func Expose ¶
func Expose() *crystalline.Exposer
func GetRawTree ¶
func GetRawTree(version pob.TreeVersion) []byte
func GetStatByIndex ¶
func SetCalcTabElements ¶
func SetCalcTabElements(elements *ElementWrapper)
Types ¶
type ElementWrapper ¶
type ElementWrapper struct {
Elements map[string]calculator.ColProps
}
Click to show internal directories.
Click to hide internal directories.