| 1234567891011121314151617181920212223242526272829303132 |
- package enum
- import "slices"
- // 赛季任务枚举
- type SeasonQuestType int32
- const (
- SeasonQuestType_None SeasonQuestType = 0 // 无
- SeasonQuestType_10000 SeasonQuestType = 10000 // 中期活动结束
- SeasonQuestType_10001 SeasonQuestType = 10001 // 全服{0}个{1}级及以上土地占领
- SeasonQuestType_10002 SeasonQuestType = 10002 // 全服消灭贼寇{0}个
- SeasonQuestType_10003 SeasonQuestType = 10003 // 全服{0}个不低于{1}级的城池被占领
- SeasonQuestType_10004 SeasonQuestType = 10004 // {0}个资源州州府被占领
- SeasonQuestType_10005 SeasonQuestType = 10005 // {0}个{1}级城池被占领
- SeasonQuestType_10006 SeasonQuestType = 10006 // {0}被占领
- SeasonQuestType_10007 SeasonQuestType = 10007 // 活动结束时,联盟等级{0}级及以上
- SeasonQuestType_10008 SeasonQuestType = 10008 // 结束时本同盟霸业积分达到{0}
- )
- var (
- // 联盟霸业任务类型列表
- LeagueSeasonQuestTypeList = []SeasonQuestType{
- SeasonQuestType_10007,
- SeasonQuestType_10008,
- }
- )
- // 是否是联盟霸业任务
- func (p SeasonQuestType) IsLeague() bool {
- return slices.Contains(LeagueSeasonQuestTypeList, p)
- }
|