2020-01-26 00:39:13 -05:00
|
|
|
package d2enum
|
|
|
|
|
2020-07-09 23:12:28 -04:00
|
|
|
//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
|
2020-01-26 00:39:13 -05:00
|
|
|
type WeaponClass int
|
|
|
|
|
2020-07-09 23:12:28 -04:00
|
|
|
// Weapon classes
|
2020-01-26 00:39:13 -05:00
|
|
|
const (
|
2020-07-09 23:12:28 -04:00
|
|
|
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
|
2020-01-26 00:39:13 -05:00
|
|
|
)
|