1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-27 01:25:35 +00:00
OpenDiablo2/d2common/d2enum
2019-11-10 10:44:13 -05:00
..
AnimationFrame.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
AnimationMode_string.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
AnimationMode.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
CompositeType.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
DrawEffect.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
Hero.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
HeroStance.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
LayerStreamType.go More optimizations and cleanup. (#131) 2019-11-10 10:44:13 -05:00
Orientation.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
PaletteDefs.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
readme.md Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
WeaponClass_string.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
WeaponClass_string2enum.go Restructured everything. (#128) 2019-11-10 03:36:53 -05:00
WeaponClass.go Restructured everything. (#128) 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:

generate

If you add any new files, make sure to add the following to the end of the file:

//go:generate stringer -linecomment -type AnimationMode