Documentation
¶
Index ¶
- type Actor
- type ListCfg
- type ModDB
- func (m *ModDB) AddDB(db *ModDB)
- func (m *ModDB) AddList(list *ModList)
- func (m *ModDB) AddMod(newMod mod.Mod)
- func (m *ModDB) Clone() ModStoreFuncs
- func (m *ModDB) Combine(modType mod.Type, cfg *ListCfg, modNames ...string) *mod.ModValueMulti
- func (m *ModDB) Flag(cfg *ListCfg, names ...string) bool
- func (m *ModDB) List(cfg *ListCfg, names ...string) []interface{}
- func (m *ModDB) Max(cfg *ListCfg, modNames ...string) float64
- func (m *ModDB) More(cfg *ListCfg, names ...string) float64
- func (m *ModDB) Override(cfg *ListCfg, names ...string) *mod.ModValueMulti
- func (m *ModDB) Sum(modType mod.Type, cfg *ListCfg, names ...string) float64
- func (m *ModDB) Tabulate(modType mod.Type, cfg *ListCfg, modNames ...string) []ModResult
- func (m *ModDB) TabulateInternal(context ModStoreFuncs, result *[]ModResult, modType mod.Type, cfg *ListCfg, ...)
- type ModList
- func (m *ModList) AddDB(db *ModList)
- func (m *ModList) AddMod(newMod mod.Mod)
- func (m *ModList) Clone() ModStoreFuncs
- func (m *ModList) Combine(modType mod.Type, cfg *ListCfg, modNames ...string) *mod.ModValueMulti
- func (m *ModList) Flag(cfg *ListCfg, names ...string) bool
- func (m *ModList) List(cfg *ListCfg, names ...string) []interface{}
- func (m *ModList) Max(cfg *ListCfg, modNames ...string) float64
- func (m *ModList) More(cfg *ListCfg, names ...string) float64
- func (m *ModList) Override(cfg *ListCfg, names ...string) *mod.ModValueMulti
- func (m *ModList) Sum(modType mod.Type, cfg *ListCfg, names ...string) float64
- func (m *ModList) Tabulate(modType mod.Type, cfg *ListCfg, modNames ...string) []ModResult
- func (m *ModList) TabulateInternal(context ModStoreFuncs, result *[]ModResult, modType mod.Type, cfg *ListCfg, ...)
- type ModResult
- type ModStore
- type ModStoreFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListCfg ¶
type ListCfg struct {
Flags *mod.MFlag
KeywordFlags *mod.KeywordFlag
Source *mod.Source
SkillStats map[string]float64
SkillCond map[string]bool
SlotName string
SkillName string
SummonSkillName string
SkillGem *poe.SkillGem
SkillGrantedEffect any
SkillPart string
SkillTypes map[data.SkillType]bool
SkillDist float64
}
type ModDB ¶
func (*ModDB) Clone ¶
func (m *ModDB) Clone() ModStoreFuncs
func (*ModDB) TabulateInternal ¶
type ModList ¶
type ModList struct {
*ModStore
// contains filtered or unexported fields
}
func NewModList ¶
func NewModList() *ModList
func (*ModList) Clone ¶
func (m *ModList) Clone() ModStoreFuncs
func (*ModList) Override ¶
func (m *ModList) Override(cfg *ListCfg, names ...string) *mod.ModValueMulti
func (*ModList) TabulateInternal ¶
type ModStore ¶
type ModStore struct {
Parent ModStoreFuncs
Child ModStoreFuncs
Actor Actor
Multipliers map[string]float64
Conditions map[string]bool
}
func NewModStore ¶
func NewModStore(parent ModStoreFuncs) *ModStore
func (*ModStore) GetCondition ¶
type ModStoreFuncs ¶
type ModStoreFuncs interface {
List(cfg *ListCfg, names ...string) []interface{}
Sum(modType mod.Type, cfg *ListCfg, names ...string) float64
More(cfg *ListCfg, names ...string) float64
Flag(cfg *ListCfg, names ...string) bool
Override(cfg *ListCfg, names ...string) *mod.ModValueMulti
GetMultiplier(variable string, cfg *ListCfg, noMod bool) float64
GetCondition(variable string, cfg *ListCfg, noMod bool) (bool, bool)
Clone() ModStoreFuncs
TabulateInternal(context ModStoreFuncs, result *[]ModResult, modType mod.Type,
cfg *ListCfg, flags mod.MFlag, keywordFlags mod.KeywordFlag, source mod.Source, modNames ...string)
Combine(modType mod.Type, cfg *ListCfg, modNames ...string) *mod.ModValueMulti
}
Click to show internal directories.
Click to hide internal directories.