1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-15 20:15:24 +00:00
OpenDiablo2/d2common/d2enum
gravestench 025ee94e50
Removed all TODO's in project (#831)
* removed the rest of the magic number errors from d2game

* hotfix for bug i added in map engine test

* removed all TODO's in project, made issues on github for each one
2020-10-25 18:36:12 -04:00
..
animation_frame_direction.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
animation_frame_event.go d2enum lint (#700) 2020-08-06 16:45:22 -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 lint fixes (#727) 2020-09-12 16:25:09 -04:00
encoding_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
equipped_slot.go D2items WIP (#646) 2020-07-30 10:14:15 -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_string.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.go Inital skilltree panel implementation (#782) 2020-10-22 12:54:45 -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_armor_class.go Removing TODO comments, making issues for them (#807) 2020-10-25 10:21:14 -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
item_quality.go d2enum lint (#700) 2020-08-06 16:45:22 -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
monumod_const_index.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
npc_action_type.go Removed all TODO's in project (#831) 2020-10-25 18:36:12 -04:00
object_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_animation_mode_string2enum.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
pet_icon_type.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
player_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
player_animation_mode.go Initial cast overlay implementation. Fix HeroSkill deserialization & map entities processing crashing for remote client. (#766) 2020-10-10 18:47:51 -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
skill_class.go Initial left & right skill select panel implementation. HeroSkill serialization cleanup. (#783) 2020-10-22 16:53:18 -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_string.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.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