1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-06 10:14:00 -04:00
OpenDiablo2/d2common/d2enum
2019-11-12 17:36:30 -05:00
..
animation_frame.go
animation_mode_string.go
animation_mode.go
composite_type.go
draw_effect.go
hero_stance.go
hero_string2enum.go Added more functionality to character select screen. (#143) 2019-11-11 23:48:55 -05:00
hero_string.go Added more functionality to character select screen. (#143) 2019-11-11 23:48:55 -05:00
hero.go Added more functionality to character select screen. (#143) 2019-11-11 23:48:55 -05:00
layer_stream_type.go
orientation.go
palette_defs.go
readme.md d2enum: update readme to mention go generate (#133) 2019-11-12 17:36:30 -05:00
region_id.go Added more functionality to character select screen. (#143) 2019-11-11 23:48:55 -05:00
region_layer.go Added more functionality to character select screen. (#143) 2019-11-11 23:48:55 -05:00
weapon_class_string2enum.go
weapon_class_string.go
weapon_class.go

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