mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 23:47:16 -05:00
* suppressing the magic number lint errors in mapgen, it will get a heavy refactor soon, hopefully... * adding string token constants for SkillClass * adding panic on error to left/right skill select render * fixed cuddle lint error * fixed unnecessary conversion, unused func param lint errors in dcc_animation.go * adding comment for skill class tokens * fixed typo in comment * removed unused parameter in dcc/dc6 animations * supress warning about Object.setMode always being passed direction value of 0 * fixed all invalid golint directives * fixed a couple gocritic lint errors
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