mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-03 01:37:18 -04:00
9e58b134e5
* Refactored animation mode enum * More d2enum changes * Refactored tile enum * Refactored weapon class enum * Refactored more enums * Refactored item event enum * Fixed init_functions animation mode * Removed string2enum from MonsterAnimationMode * Refactored ItemStatCost description * Last enum lint errors * Regenerated monster stringer file
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package d2enum
|
|
|
|
//go:generate stringer -linecomment -type WeaponClass -output weapon_class_string.go
|
|
//go:generate string2enum -samepkg -linecomment -type WeaponClass -output weapon_class_string2enum.go
|
|
|
|
// WeaponClass represents a weapon class
|
|
type WeaponClass int
|
|
|
|
// Weapon classes
|
|
const (
|
|
WeaponClassNone WeaponClass = iota //
|
|
WeaponClassHandToHand // hth
|
|
WeaponClassBow // bow
|
|
WeaponClassOneHandSwing // 1hs
|
|
WeaponClassOneHandThrust // 1ht
|
|
WeaponClassStaff // stf
|
|
WeaponClassTwoHandSwing // 2hs
|
|
WeaponClassTwoHandThrust // 2ht
|
|
WeaponClassCrossbow // xbw
|
|
WeaponClassLeftJabRightSwing // 1js
|
|
WeaponClassLeftJabRightThrust // 1jt
|
|
WeaponClassLeftSwingRightSwing // 1ss
|
|
WeaponClassLeftSwingRightThrust // 1st
|
|
WeaponClassOneHandToHand // ht1
|
|
WeaponClassTwoHandToHand // ht2
|
|
)
|