umadump/replay: start of race replay json decoding
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Code generated by "stringer -type Season -trimprefix Season"; 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[SeasonMin-0]
|
||||
_ = x[SeasonSpring-1]
|
||||
_ = x[SeasonSummer-2]
|
||||
_ = x[SeasonFall-3]
|
||||
_ = x[SeasonWinter-4]
|
||||
_ = x[SeasonCherryBlossom-5]
|
||||
_ = x[SeasonMax-6]
|
||||
}
|
||||
|
||||
const _Season_name = "MinSpringSummerFallWinterCherryBlossomMax"
|
||||
|
||||
var _Season_index = [...]uint8{0, 3, 9, 15, 19, 25, 38, 41}
|
||||
|
||||
func (i Season) String() string {
|
||||
idx := int(i) - 0
|
||||
if i < 0 || idx >= len(_Season_index)-1 {
|
||||
return "Season(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Season_name[_Season_index[idx]:_Season_index[idx+1]]
|
||||
}
|
||||
Reference in New Issue
Block a user