mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 11:34:15 -04:00
* 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
31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
// Code generated by "stringer -linecomment -type ObjectAnimationMode -output object_animation_mode_string.go"; DO NOT EDIT.
|
|
|
|
package d2enum
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ObjectAnimationModeNeutral-0]
|
|
_ = x[ObjectAnimationModeOperating-1]
|
|
_ = x[ObjectAnimationModeOpened-2]
|
|
_ = x[ObjectAnimationModeSpecial1-3]
|
|
_ = x[ObjectAnimationModeSpecial2-4]
|
|
_ = x[ObjectAnimationModeSpecial3-5]
|
|
_ = x[ObjectAnimationModeSpecial4-6]
|
|
_ = x[ObjectAnimationModeSpecial5-7]
|
|
}
|
|
|
|
const _ObjectAnimationMode_name = "NUOPONS1S2S3S4S5"
|
|
|
|
var _ObjectAnimationMode_index = [...]uint8{0, 2, 4, 6, 8, 10, 12, 14, 16}
|
|
|
|
func (i ObjectAnimationMode) String() string {
|
|
if i < 0 || i >= ObjectAnimationMode(len(_ObjectAnimationMode_index)-1) {
|
|
return "ObjectAnimationMode(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _ObjectAnimationMode_name[_ObjectAnimationMode_index[i]:_ObjectAnimationMode_index[i+1]]
|
|
}
|