shotgun/game/action_string.go

36 lines
991 B
Go
Raw Normal View History

// 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[actDealerConcedes-11]
_ = x[actChallengerConcedes-12]
}
const _action_name = "StartShootGameEndBeerGameEndChallengerWinsDealerWinsLensCigBeerCuffKnifeDealerConcedesChallengerConcedes"
var _action_index = [...]uint8{0, 5, 10, 17, 28, 42, 52, 56, 59, 63, 67, 72, 86, 104}
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]]
}