1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 17:27:23 -04:00
OpenDiablo2/d2common/d2enum
2020-07-23 12:56:50 -04:00
..
animation_frame.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
composite_type_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
composite_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
doc.go moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
draw_effect.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
encoding_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
equipped_slot.go Renamed EquippedSlot enum (#563) 2020-07-08 19:08:07 -04:00
filter.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
hero_stance.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
input_button.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_key.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_priority.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
inventory_item_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_affix_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_event_functions.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_events.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
layer_stream_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
level_generation_types.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
level_teleport_flags.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_alignment_type.go fixed monstats lint errors, added doc file for d2datadict (#494) 2020-06-29 18:46:31 -04:00
monster_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_animation_mode.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_combat_type.go fixed monstats lint errors, added doc file for d2datadict (#494) 2020-06-29 18:46:31 -04:00
npc_action_type.go Removing lint errors in npc.go, mapstamp.go (#597) 2020-07-17 18:51:19 -04:00
object_animation_mode_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_animation_mode.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
operator_type.go Resolved most lint errors in d2data and d2datadict (#499) 2020-06-30 09:17:07 -04:00
player_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
player_animation_mode.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
readme.md merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
region_id.go lint fixes (#615) 2020-07-23 12:56:50 -04:00
region_layer.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
render_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
terminal_category.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
tile.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class.go Refactored d2enum (#567) 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