1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2common/d2enum/object_animation_mode_string.go

31 lines
1.0 KiB
Go
Raw Normal View History

// 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]]
}