30 lines
794 B
Go
30 lines
794 B
Go
// Code generated by "stringer -type CardRarity -linecomment -trimprefix Card"; DO NOT EDIT.
|
|
|
|
package replay
|
|
|
|
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[CardNone-0]
|
|
_ = x[CardRare1-1]
|
|
_ = x[CardRare2-2]
|
|
_ = x[CardRare3-3]
|
|
_ = x[CardRare4-4]
|
|
_ = x[CardRare5-5]
|
|
}
|
|
|
|
const _CardRarity_name = "NONERare1Rare2Rare3Rare4Rare5"
|
|
|
|
var _CardRarity_index = [...]uint8{0, 4, 9, 14, 19, 24, 29}
|
|
|
|
func (i CardRarity) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_CardRarity_index)-1 {
|
|
return "CardRarity(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _CardRarity_name[_CardRarity_index[idx]:_CardRarity_index[idx+1]]
|
|
}
|