27 lines
710 B
Go
27 lines
710 B
Go
// Code generated by "stringer -type SupportCardRarity"; 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[R-1]
|
|
_ = x[SR-2]
|
|
_ = x[SSR-3]
|
|
}
|
|
|
|
const _SupportCardRarity_name = "RSRSSR"
|
|
|
|
var _SupportCardRarity_index = [...]uint8{0, 1, 3, 6}
|
|
|
|
func (i SupportCardRarity) String() string {
|
|
idx := int(i) - 1
|
|
if i < 1 || idx >= len(_SupportCardRarity_index)-1 {
|
|
return "SupportCardRarity(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _SupportCardRarity_name[_SupportCardRarity_index[idx]:_SupportCardRarity_index[idx+1]]
|
|
}
|