season.go 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package enum
  2. import "slices"
  3. // 赛季任务枚举
  4. type SeasonQuestType int32
  5. const (
  6. SeasonQuestType_None SeasonQuestType = 0 // 无
  7. SeasonQuestType_10000 SeasonQuestType = 10000 // 中期活动结束
  8. SeasonQuestType_10001 SeasonQuestType = 10001 // 全服{0}个{1}级及以上土地占领
  9. SeasonQuestType_10002 SeasonQuestType = 10002 // 全服消灭贼寇{0}个
  10. SeasonQuestType_10003 SeasonQuestType = 10003 // 全服{0}个不低于{1}级的城池被占领
  11. SeasonQuestType_10004 SeasonQuestType = 10004 // {0}个资源州州府被占领
  12. SeasonQuestType_10005 SeasonQuestType = 10005 // {0}个{1}级城池被占领
  13. SeasonQuestType_10006 SeasonQuestType = 10006 // {0}被占领
  14. SeasonQuestType_10007 SeasonQuestType = 10007 // 活动结束时,联盟等级{0}级及以上
  15. SeasonQuestType_10008 SeasonQuestType = 10008 // 结束时本同盟霸业积分达到{0}
  16. )
  17. var (
  18. // 联盟霸业任务类型列表
  19. LeagueSeasonQuestTypeList = []SeasonQuestType{
  20. SeasonQuestType_10007,
  21. SeasonQuestType_10008,
  22. }
  23. )
  24. // 是否是联盟霸业任务
  25. func (p SeasonQuestType) IsLeague() bool {
  26. return slices.Contains(LeagueSeasonQuestTypeList, p)
  27. }