1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2core/d2stats/stat_list.go

17 lines
411 B
Go
Raw Normal View History

package d2stats
// StatList is useful for reducing stats.
// They provide a context for stats to alter other stats or infer values
// during stat assignment/calculation
type StatList interface {
Index(idx int) Stat
Stats() []Stat
SetStats([]Stat) StatList
Clone() StatList
ReduceStats() StatList
RemoveStatAtIndex(idx int) Stat
AppendStatList(other StatList) StatList
Pop() Stat
Push(Stat) StatList
}