30 lines
805 B
Go
30 lines
805 B
Go
// Code generated by "stringer -type RaceWeather -trimprefix Weather"; 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[WeatherMin-0]
|
|
_ = x[WeatherSunny-1]
|
|
_ = x[WeatherCloudy-2]
|
|
_ = x[WeatherRainy-3]
|
|
_ = x[WeatherSnow-4]
|
|
_ = x[WeatherMax-5]
|
|
}
|
|
|
|
const _RaceWeather_name = "MinSunnyCloudyRainySnowMax"
|
|
|
|
var _RaceWeather_index = [...]uint8{0, 3, 8, 14, 19, 23, 26}
|
|
|
|
func (i RaceWeather) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_RaceWeather_index)-1 {
|
|
return "RaceWeather(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _RaceWeather_name[_RaceWeather_index[idx]:_RaceWeather_index[idx+1]]
|
|
}
|