all: remove koka code, move go to repo root
This commit is contained in:
69
abilitytype_string.go
Normal file
69
abilitytype_string.go
Normal file
@@ -0,0 +1,69 @@
|
||||
// Code generated by "stringer -type AbilityType -trimprefix Ability -linecomment"; DO NOT EDIT.
|
||||
|
||||
package horse
|
||||
|
||||
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[AbilityPassiveSpeed-1]
|
||||
_ = x[AbilityPassiveStamina-2]
|
||||
_ = x[AbilityPassivePower-3]
|
||||
_ = x[AbilityPassiveGuts-4]
|
||||
_ = x[AbilityPassiveWit-5]
|
||||
_ = x[AbilityGreatEscape-6]
|
||||
_ = x[AbilityVision-8]
|
||||
_ = x[AbilityHP-9]
|
||||
_ = x[AbilityGateDelay-10]
|
||||
_ = x[AbilityFrenzy-13]
|
||||
_ = x[AbilityAddGateDelay-14]
|
||||
_ = x[AbilityCurrentSpeed-21]
|
||||
_ = x[AbilityTargetSpeed-27]
|
||||
_ = x[AbilityLaneSpeed-28]
|
||||
_ = x[AbilityAccel-31]
|
||||
_ = x[AbilityLaneChange-35]
|
||||
}
|
||||
|
||||
const (
|
||||
_AbilityType_name_0 = "SpeedStaminaPowerGutsWitEnable Great Escape"
|
||||
_AbilityType_name_1 = "VisionHPGate delay multiplier"
|
||||
_AbilityType_name_2 = "FrenzyAdded gate delay"
|
||||
_AbilityType_name_3 = "Current speed"
|
||||
_AbilityType_name_4 = "Target speedLane change speed"
|
||||
_AbilityType_name_5 = "Acceleration"
|
||||
_AbilityType_name_6 = "Forced lane change"
|
||||
)
|
||||
|
||||
var (
|
||||
_AbilityType_index_0 = [...]uint8{0, 5, 12, 17, 21, 24, 43}
|
||||
_AbilityType_index_1 = [...]uint8{0, 6, 8, 29}
|
||||
_AbilityType_index_2 = [...]uint8{0, 6, 22}
|
||||
_AbilityType_index_4 = [...]uint8{0, 12, 29}
|
||||
)
|
||||
|
||||
func (i AbilityType) String() string {
|
||||
switch {
|
||||
case 1 <= i && i <= 6:
|
||||
i -= 1
|
||||
return _AbilityType_name_0[_AbilityType_index_0[i]:_AbilityType_index_0[i+1]]
|
||||
case 8 <= i && i <= 10:
|
||||
i -= 8
|
||||
return _AbilityType_name_1[_AbilityType_index_1[i]:_AbilityType_index_1[i+1]]
|
||||
case 13 <= i && i <= 14:
|
||||
i -= 13
|
||||
return _AbilityType_name_2[_AbilityType_index_2[i]:_AbilityType_index_2[i+1]]
|
||||
case i == 21:
|
||||
return _AbilityType_name_3
|
||||
case 27 <= i && i <= 28:
|
||||
i -= 27
|
||||
return _AbilityType_name_4[_AbilityType_index_4[i]:_AbilityType_index_4[i+1]]
|
||||
case i == 31:
|
||||
return _AbilityType_name_5
|
||||
case i == 35:
|
||||
return _AbilityType_name_6
|
||||
default:
|
||||
return "AbilityType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user