1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-19 21:55:24 +00:00
OpenDiablo2/d2common/d2enum
presiyan-ivanov 88326b5278
Initial cast overlay implementation. Fix HeroSkill deserialization & map entities processing crashing for remote client. (#766)
* Casting a skill now plays the corresponding overlay(if any).

* Prevent a crash caused by nil pointer in HeroSkill deserialization, happening when
unmarshalling HeroSkill from packets as a remote client.

* Add PlayerAnimationModeNone to handle some of the Skills(e.g.
Paladin auras) having "" as animation mode.

* Joining a game as remote client now waits for map generation to finish
before rendering map or processing map entities. This is temporary hack to prevent the game from
crashing due to concurrent map read & write exception.

* Send CastSkill packet to other clients.

Co-authored-by: Presiyan Ivanov <presiyan-ivanov@users.noreply.github.com>
2020-10-10 18:47:51 -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 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
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 Removing lint errors in npc.go, mapstamp.go (#597) 2020-07-17 18:51:19 -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
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