umadump/replay: implement race sim decoding
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Code generated by "stringer -type RunningStyle -linecomment"; 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[StyleNone-0]
|
||||
_ = x[StyleNige-1]
|
||||
_ = x[StyleSenko-2]
|
||||
_ = x[StyleSashi-3]
|
||||
_ = x[StyleOikomi-4]
|
||||
}
|
||||
|
||||
const _RunningStyle_name = "NONENIGESENKOSASHIOIKOMI"
|
||||
|
||||
var _RunningStyle_index = [...]uint8{0, 4, 8, 13, 18, 24}
|
||||
|
||||
func (i RunningStyle) String() string {
|
||||
idx := int(i) - 0
|
||||
if i < 0 || idx >= len(_RunningStyle_index)-1 {
|
||||
return "RunningStyle(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _RunningStyle_name[_RunningStyle_index[idx]:_RunningStyle_index[idx+1]]
|
||||
}
|
||||
Reference in New Issue
Block a user