| 12345678910111213141516171819202122 |
- package constant
- // 队伍类型 //TODO 如果后面队伍很多 最好走配表
- const (
- // 探险
- Adventure_Type int32 = 1
- )
- const (
- LineupMemberIndex_Start = 0 // 阵容成员开始索引
- LineupMemberIndex_End = 8 // 阵容成员结束索引
- LineupMemberLimit = 5 // 阵容成员上限
- )
- func CheckLineupTypeValid(lineupType int32) bool {
- return lineupType == Adventure_Type
- }
- // ValidateLineupMemberIndex 检测阵容成员索引值是否正确
- func ValidateLineupMemberIndex(index ...int32) bool {
- return ValidateTeamIndex(LineupMemberIndex_Start, LineupMemberIndex_End, index...)
- }
|