1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-12 10:40:42 +00:00
OpenDiablo2/d2core/d2stats/stat.go
lord 76ed8ff180
simple inventory item descriptions (#672)
* adding simple inventory item descriptions

* adding method to identify items

* offset description so it doesn't overlap with item in inventory grid
2020-08-03 13:44:00 -04:00

16 lines
388 B
Go

package d2stats
// Stat a generic interface for a stat. It is something which can be
// combined with other stats, holds one or more values, and handles the
// way that it is printed as a string
type Stat interface {
Name() string
Clone() Stat
Copy(Stat) Stat
Combine(Stat) (combined Stat, err error)
String() string
Values() []StatValue
SetValues(...StatValue)
Priority() int
}