lineup.go 606 B

12345678910111213141516171819202122
  1. package constant
  2. // 队伍类型 //TODO 如果后面队伍很多 最好走配表
  3. const (
  4. // 探险
  5. Adventure_Type int32 = 1
  6. )
  7. const (
  8. LineupMemberIndex_Start = 0 // 阵容成员开始索引
  9. LineupMemberIndex_End = 8 // 阵容成员结束索引
  10. LineupMemberLimit = 5 // 阵容成员上限
  11. )
  12. func CheckLineupTypeValid(lineupType int32) bool {
  13. return lineupType == Adventure_Type
  14. }
  15. // ValidateLineupMemberIndex 检测阵容成员索引值是否正确
  16. func ValidateLineupMemberIndex(index ...int32) bool {
  17. return ValidateTeamIndex(LineupMemberIndex_Start, LineupMemberIndex_End, index...)
  18. }