mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
6269726316
* Quit using ObjectLookupRecord in composite * Unexport SetMode in map entities * Get rid of weaponClass from MapEntity * Pass ObjectType to composite instead of string * Use layer weaponclass from cof * Manage more stuff directly in composite * Explicitly index when picking equipment |
||
---|---|---|
.. | ||
animation_frame.go | ||
animation_mode.go | ||
composite_mode.go | ||
composite_type.go | ||
compositetype_string2enum.go | ||
compositetype_string.go | ||
description_functions.go | ||
doc.go | ||
draw_effect.go | ||
encoding_type.go | ||
equipped_slot_type.go | ||
hero_stance.go | ||
hero_string2enum.go | ||
hero_string.go | ||
hero.go | ||
inventory_item_type.go | ||
item_affix_type.go | ||
item_event_functions.go | ||
item_events.go | ||
layer_stream_type.go | ||
level_generation_types.go | ||
level_teleport_flags.go | ||
monster_alignment_type.go | ||
monster_combat_type.go | ||
monsteranimationmode_string2enum.go | ||
monsteranimationmode_string.go | ||
object_type.go | ||
objectanimationmode_string2enum.go | ||
objectanimationmode_string.go | ||
operator_type.go | ||
playeranimationmode_string.go | ||
readme.md | ||
region_id.go | ||
region_layer.go | ||
tiletype.go | ||
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