1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 17:27:23 -04:00
OpenDiablo2/d2common/d2enum
Ziemas fa20b9ee51
Spawn monster by monstat record (#508)
* DS1 reader no longer looks up objects

* Start of enteties managing their own equipment

* stringer and string2enum CompositeType

String2enum

* Use CompositeType stringer to simplify composite

* Finally fix GetDelimitedList

And lint issues

* NPC selects random equipment
2020-07-01 00:06:06 -04:00
..
animation_frame.go More linting (#500) 2020-06-30 09:58:53 -04:00
animation_mode.go More linting (#500) 2020-06-30 09:58:53 -04:00
composite_mode.go More linting (#500) 2020-06-30 09:58:53 -04:00
composite_type.go Spawn monster by monstat record (#508) 2020-07-01 00:06:06 -04:00
compositetype_string2enum.go Spawn monster by monstat record (#508) 2020-07-01 00:06:06 -04:00
compositetype_string.go Spawn monster by monstat record (#508) 2020-07-01 00:06:06 -04:00
description_functions.go DataDictionary loader for ItemStatCost (#333) 2020-06-13 19:52:22 -04:00
draw_effect.go More linting (#500) 2020-06-30 09:58:53 -04:00
encoding_type.go Resolved most lint errors in d2data and d2datadict (#499) 2020-06-30 09:17:07 -04:00
equipped_slot_type.go More linting (#500) 2020-06-30 09:58:53 -04:00
hero_stance.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
hero_string2enum.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.go Refectoring to reduce code warnings (#283) 2020-02-01 21:51:49 -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
level_generation_types.go Revert "Refactor d2map (#468)" (#469) 2020-06-26 17:12:19 -04:00
level_teleport_flags.go Feature d2datadict levels (#373) 2020-06-21 16:45:22 -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_combat_type.go fixed monstats lint errors, added doc file for d2datadict (#494) 2020-06-29 18:46:31 -04:00
monsteranimationmode_string2enum.go Monstat2 loading and a bunch of lint issues (#491) 2020-06-29 12:37:11 -04:00
monsteranimationmode_string.go Various map entity reworks (#439) 2020-06-24 13:49:13 -04:00
object_type.go Resolved most lint errors in d2data and d2datadict (#499) 2020-06-30 09:17:07 -04:00
objectanimationmode_string2enum.go Get and use draw order and animation speed for objects (#473) 2020-06-27 14:30:23 -04:00
objectanimationmode_string.go Various map entity reworks (#439) 2020-06-24 13:49:13 -04:00
operator_type.go Resolved most lint errors in d2data and d2datadict (#499) 2020-06-30 09:17:07 -04:00
playeranimationmode_string.go Various map entity reworks (#439) 2020-06-24 13:49:13 -04:00
readme.md merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
region_id.go Re-tooled rendering engine (#379) 2020-06-21 18:40:37 -04:00
region_layer.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
tiletype.go Show special tiles in mapdebug (#386) 2020-06-21 22:14:06 -04:00
weapon_class_string2enum.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.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05: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