2020-04-04 23:53:25 -07:00
|
|
|
// Code generated by "stringer -type=armorBlock"; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package plc
|
|
|
|
|
|
|
|
|
|
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[redDs-0]
|
|
|
|
|
_ = x[blueDs-1]
|
2020-04-14 19:38:14 -05:00
|
|
|
_ = x[armorBlockCount-2]
|
2020-04-04 23:53:25 -07:00
|
|
|
}
|
|
|
|
|
|
2020-04-14 19:38:14 -05:00
|
|
|
const _armorBlock_name = "redDsblueDsarmorBlockCount"
|
2020-04-04 23:53:25 -07:00
|
|
|
|
2020-04-14 19:38:14 -05:00
|
|
|
var _armorBlock_index = [...]uint8{0, 5, 11}
|
2020-04-04 23:53:25 -07:00
|
|
|
|
|
|
|
|
func (i armorBlock) String() string {
|
|
|
|
|
if i < 0 || i >= armorBlock(len(_armorBlock_index)-1) {
|
|
|
|
|
return "armorBlock(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
|
}
|
|
|
|
|
return _armorBlock_name[_armorBlock_index[i]:_armorBlock_index[i+1]]
|
|
|
|
|
}
|