1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-20 23:47:16 -05:00
Intyre 9e58b134e5
Refactored d2enum (#567)
* Refactored animation mode enum

* More d2enum changes

* Refactored tile enum

* Refactored weapon class enum

* Refactored more enums

* Refactored item event enum

* Fixed init_functions animation mode

* Removed string2enum from MonsterAnimationMode

* Refactored ItemStatCost description

* Last enum lint errors

* Regenerated monster stringer file
2020-07-09 23:12:28 -04:00
..
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04:00
2020-07-09 23:12:28 -04: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:

go generate

If you add any enums (e.g. AnimationMode), make sure to add the following to the end of the file:

//go:generate stringer -linecomment -type AnimationMode