Files
horse/horse/abilitytarget_string.go

59 lines
1.7 KiB
Go

// Code generated by "stringer -type AbilityTarget -trimprefix Target -linecomment"; DO NOT EDIT.
package horse
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[TargetSelf-1]
_ = x[TargetSympathizers-2]
_ = x[TargetInView-4]
_ = x[TargetFrontmost-7]
_ = x[TargetAhead-9]
_ = x[TargetBehind-10]
_ = x[TargetAllTeammates-11]
_ = x[TargetStyle-18]
_ = x[TargetRushingAhead-19]
_ = x[TargetRushingBehind-20]
_ = x[TargetRushingStyle-21]
_ = x[TargetCharacter-22]
_ = x[TargetTriggering-23]
}
const (
_AbilityTarget_name_0 = "selfothers with Sympathy"
_AbilityTarget_name_1 = "others in view"
_AbilityTarget_name_2 = "frontmost"
_AbilityTarget_name_3 = "others aheadothers behindall teammates"
_AbilityTarget_name_4 = "using stylerushing others aheadrushing others behindrushing using stylespecific characterwhosoever triggered this skill"
)
var (
_AbilityTarget_index_0 = [...]uint8{0, 4, 24}
_AbilityTarget_index_3 = [...]uint8{0, 12, 25, 38}
_AbilityTarget_index_4 = [...]uint8{0, 11, 31, 52, 71, 89, 119}
)
func (i AbilityTarget) String() string {
switch {
case 1 <= i && i <= 2:
i -= 1
return _AbilityTarget_name_0[_AbilityTarget_index_0[i]:_AbilityTarget_index_0[i+1]]
case i == 4:
return _AbilityTarget_name_1
case i == 7:
return _AbilityTarget_name_2
case 9 <= i && i <= 11:
i -= 9
return _AbilityTarget_name_3[_AbilityTarget_index_3[i]:_AbilityTarget_index_3[i+1]]
case 18 <= i && i <= 23:
i -= 18
return _AbilityTarget_name_4[_AbilityTarget_index_4[i]:_AbilityTarget_index_4[i+1]]
default:
return "AbilityTarget(" + strconv.FormatInt(int64(i), 10) + ")"
}
}