mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
17 lines
411 B
Go
17 lines
411 B
Go
|
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
|
||
|
}
|