mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-14 16:26:31 -05:00
c114ab9eb7
* add interface for stats, d2 is an implementation * fix incorrect comment, remove ennecessary int * simplified description functions, remove duplicates * moved default stringer functions * fixed incorrect stat combine method * change `Create` to `New` in method names
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
|
|
}
|