horsegen: generate umas
This commit is contained in:
31
horse/aptitudelevel_string.go
Normal file
31
horse/aptitudelevel_string.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by "stringer -type AptitudeLevel -trimprefix AptitudeLv"; 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[AptitudeLvG-1]
|
||||
_ = x[AptitudeLvF-2]
|
||||
_ = x[AptitudeLvE-3]
|
||||
_ = x[AptitudeLvD-4]
|
||||
_ = x[AptitudeLvC-5]
|
||||
_ = x[AptitudeLvB-6]
|
||||
_ = x[AptitudeLvA-7]
|
||||
_ = x[AptitudeLvS-8]
|
||||
}
|
||||
|
||||
const _AptitudeLevel_name = "GFEDCBAS"
|
||||
|
||||
var _AptitudeLevel_index = [...]uint8{0, 1, 2, 3, 4, 5, 6, 7, 8}
|
||||
|
||||
func (i AptitudeLevel) String() string {
|
||||
idx := int(i) - 1
|
||||
if i < 1 || idx >= len(_AptitudeLevel_index)-1 {
|
||||
return "AptitudeLevel(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _AptitudeLevel_name[_AptitudeLevel_index[idx]:_AptitudeLevel_index[idx+1]]
|
||||
}
|
||||
1686
horse/global/uma.go
Normal file
1686
horse/global/uma.go
Normal file
File diff suppressed because it is too large
Load Diff
1550
horse/global/uma.kk
Normal file
1550
horse/global/uma.kk
Normal file
File diff suppressed because it is too large
Load Diff
32
horse/uma.go
Normal file
32
horse/uma.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package horse
|
||||
|
||||
type UmaID int32
|
||||
|
||||
type Uma struct {
|
||||
ID UmaID
|
||||
CharacterID CharacterID
|
||||
Name string
|
||||
Variant string
|
||||
|
||||
Sprint, Mile, Medium, Long AptitudeLevel
|
||||
Front, Pace, Late, End AptitudeLevel
|
||||
Turf, Dirt AptitudeLevel
|
||||
|
||||
Unique SkillID
|
||||
Skill1, Skill2, Skill3 SkillID
|
||||
SkillPL2, SkillPL3, SkillPL4, SkillPL5 SkillID
|
||||
}
|
||||
|
||||
type AptitudeLevel int8
|
||||
|
||||
//go:generate go run golang.org/x/tools/cmd/stringer@v0.41.0 -type AptitudeLevel -trimprefix AptitudeLv
|
||||
const (
|
||||
AptitudeLvG AptitudeLevel = iota + 1
|
||||
AptitudeLvF
|
||||
AptitudeLvE
|
||||
AptitudeLvD
|
||||
AptitudeLvC
|
||||
AptitudeLvB
|
||||
AptitudeLvA
|
||||
AptitudeLvS
|
||||
)
|
||||
28
horse/uma.kk
28
horse/uma.kk
@@ -7,13 +7,21 @@ import horse/movement
|
||||
pub struct uma-detail
|
||||
uma-id: uma-id
|
||||
character-id: character-id
|
||||
turf: level
|
||||
dirt: level
|
||||
sprint: level
|
||||
mile: level
|
||||
medium: level
|
||||
long: level
|
||||
front-runner: level
|
||||
pace-chaser: level
|
||||
late-surger: level
|
||||
end-closer: level
|
||||
sprint: aptitude-level
|
||||
mile: aptitude-level
|
||||
medium: aptitude-level
|
||||
long: aptitude-level
|
||||
front-runner: aptitude-level
|
||||
pace-chaser: aptitude-level
|
||||
late-surger: aptitude-level
|
||||
end-closer: aptitude-level
|
||||
turf: aptitude-level
|
||||
dirt: aptitude-level
|
||||
unique: skill-id
|
||||
skill1: skill-id
|
||||
skill2: skill-id
|
||||
skill3: skill-id
|
||||
skill-pl2: skill-id
|
||||
skill-pl3: skill-id
|
||||
skill-pl4: skill-id
|
||||
skill-pl5: skill-id
|
||||
|
||||
Reference in New Issue
Block a user