shotgun/game/action_string.go

41 lines
1.1 KiB
Go

// Code generated by "stringer -type=action -trimprefix=act"; DO NOT EDIT.
package game
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[actStart-0]
_ = x[actShoot-1]
_ = x[actGameEnd-2]
_ = x[actBeerGameEnd-3]
_ = x[actChallengerWins-4]
_ = x[actDealerWins-5]
_ = x[actLens-6]
_ = x[actCig-7]
_ = x[actBeer-8]
_ = x[actCuff-9]
_ = x[actKnife-10]
_ = x[actAdrenaline-11]
_ = x[actPhone-12]
_ = x[actInverter-13]
_ = x[actPillsHeal-14]
_ = x[actPillsHurt-15]
_ = x[actDealerConcedes-16]
_ = x[actChallengerConcedes-17]
}
const _action_name = "StartShootGameEndBeerGameEndChallengerWinsDealerWinsLensCigBeerCuffKnifeAdrenalinePhoneInverterPillsHealPillsHurtDealerConcedesChallengerConcedes"
var _action_index = [...]uint8{0, 5, 10, 17, 28, 42, 52, 56, 59, 63, 67, 72, 82, 87, 95, 104, 113, 127, 145}
func (i action) String() string {
if i >= action(len(_action_index)-1) {
return "action(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _action_name[_action_index[i]:_action_index[i+1]]
}