2019-11-10 03:36:53 -05:00
|
|
|
# OpenDiablo2 Enums
|
|
|
|
Items in this folder are compiled with two programs. You can obtain them
|
|
|
|
by running the following:
|
|
|
|
```
|
|
|
|
go get golang.org/x/tools/cmd/stringer
|
|
|
|
go get github.com/mewspring/tools/cmd/string2enum
|
|
|
|
```
|
|
|
|
Once you have the tools installed, simply run the following command in this
|
|
|
|
folder to regenerate the support files:
|
|
|
|
```
|
2019-11-12 17:36:30 -05:00
|
|
|
go generate
|
2019-11-10 03:36:53 -05:00
|
|
|
```
|
2019-11-12 17:36:30 -05:00
|
|
|
If you add any enums (e.g. `AnimationMode`), make sure to add the following to the end of the
|
2019-11-10 03:36:53 -05:00
|
|
|
file:
|
|
|
|
```go
|
|
|
|
//go:generate stringer -linecomment -type AnimationMode
|
|
|
|
```
|