OpenDiablo2/d2common/d2enum
dk a25e42518d
DataDictionary loader for ItemStatCost (#333)
* adding rules for swap files to .gitignore

* main, d2common: load Magic/Rare/Unique Affix

* d2common: item affixes only

removed Rare/Unique Prefix/Suffix as those are related to monsters, not items.

* removed debug print from item_affix.go

* changed item affix type names for clarity, removed debug print from data_dictionary

* d2common: item affix datadict and records

Item Affixes are defined in `/data/global/excel/Magic{Prefix,Suffix}.txt`
Rare and Unique Pre/Suffixes seem to be for monsters, not items.

d2common: item affixes only

removed Rare/Unique Prefix/Suffix as those are related to monsters, not items.

removed debug print from item_affix.go

changed item affix type names for clarity, removed debug print from data_dictionary

* reverting to pre-allocating memory for parsing txt lines

* removing the rest of the rare/unique definitions

* removing the rest of the rare/unique definitions

* adding ItemStatCost data dict loader
2020-06-13 19:52:22 -04:00
..
animation_frame.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
animation_mode.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
animation_mode_string.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
composite_type.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
description_functions.go DataDictionary loader for ItemStatCost (#333) 2020-06-13 19:52:22 -04:00
draw_effect.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
hero.go Refectoring to reduce code warnings (#283) 2020-02-01 21:51:49 -05:00
hero_stance.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
hero_string.go Refectoring to reduce code warnings (#283) 2020-02-01 21:51:49 -05:00
hero_string2enum.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
inventory_item_type.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
item_affix_type.go Item Affixes (#328) 2020-05-08 12:33:37 -04:00
item_event_functions.go DataDictionary loader for ItemStatCost (#333) 2020-06-13 19:52:22 -04:00
item_events.go DataDictionary loader for ItemStatCost (#333) 2020-06-13 19:52:22 -04:00
layer_stream_type.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
readme.md merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
region_id.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
region_layer.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
tiletype.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
weapon_class.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
weapon_class_string.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
weapon_class_string2enum.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00

readme.md

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