umadump/replay: start of race replay json decoding
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// Code generated by "stringer -type GroundCondition -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[GroundFirm-1]
|
||||
_ = x[GroundGood-2]
|
||||
_ = x[GroundSoft-3]
|
||||
_ = x[GroundHeavy-4]
|
||||
}
|
||||
|
||||
const _GroundCondition_name = "GoodSoftHardBad"
|
||||
|
||||
var _GroundCondition_index = [...]uint8{0, 4, 8, 12, 15}
|
||||
|
||||
func (i GroundCondition) String() string {
|
||||
idx := int(i) - 1
|
||||
if i < 1 || idx >= len(_GroundCondition_index)-1 {
|
||||
return "GroundCondition(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _GroundCondition_name[_GroundCondition_index[idx]:_GroundCondition_index[idx+1]]
|
||||
}
|
||||
Reference in New Issue
Block a user