| | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | using System.Text.RegularExpressions;
|
| | | using System;
|
| | | using System.Linq;
|
| | |
|
| | |
| | | public Dictionary<int, List<RankAwardItem>> billRankAwardDict { get; private set; }
|
| | | public Dictionary<int, List<OSCBillTagAwardConfig>> billTagCfgDict { get; private set; }
|
| | | public Dictionary<int, List<RankAwardItem>> billTagAwardDict { get; private set; }
|
| | | public Dictionary<int, int[]> billRankPromotePathDict { get; private set; }
|
| | | public Dictionary<int, Int2[]> billRankPromotePathDict { get; private set; }
|
| | | public Dictionary<int, OSCbillBoardCondition> impactRankTypeOpenDict { get; private set; }
|
| | | public Dictionary<int, List<OSCBillTagAwardConfig>> billTagSortCfgDict { get; private set; }
|
| | | public List<int> impactRankSorts = new List<int>();
|
| | | public int openServerActivityDays { get; private set; }
|
| | | public int openServerRankDays { get; private set; }
|
| | | public int gotoImpactRankType { get; set; }
|
| | |
|
| | |
|
| | | public List<Int2> GetBillRankPromotePaths(int type)
|
| | | {
|
| | | if (!billRankPromotePathDict.ContainsKey(type))
|
| | | {
|
| | | return null;
|
| | | }
|
| | |
|
| | | var paths = billRankPromotePathDict[type];
|
| | | var filtratePaths = new List<Int2>();
|
| | | foreach (var path in paths)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.VIPLv >= path.y)
|
| | | {
|
| | | filtratePaths.Add(path);
|
| | | }
|
| | | }
|
| | |
|
| | | return filtratePaths;
|
| | | }
|
| | |
|
| | | private void ParseConfig()
|
| | | {
|
| | | billRankCfgDict = new Dictionary<int, List<OSCBillRankAwardConfig>>();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | billRankPromotePathDict = new Dictionary<int, int[]>();
|
| | | billRankPromotePathDict = new Dictionary<int, Int2[]>();
|
| | | var _funcCfg = FuncConfigConfig.Get("OSCBillRankTypePromote");
|
| | | var _json = LitJson.JsonMapper.ToObject(_funcCfg.Numerical1);
|
| | | foreach (var _key in _json.Keys)
|
| | | {
|
| | | var _type = int.Parse(_key);
|
| | | var _wayArray = LitJson.JsonMapper.ToObject<int[]>(_json[_key].ToJson());
|
| | | billRankPromotePathDict.Add(_type, _wayArray);
|
| | | var subJson = _json[_key];
|
| | |
|
| | | billRankPromotePathDict[_type] = new Int2[subJson.Keys.Count];
|
| | | var index = 0;
|
| | | foreach (var subKey in subJson.Keys)
|
| | | {
|
| | | var path = int.Parse(subKey);
|
| | | var vipLevel = int.Parse(subJson[subKey].ToString());
|
| | | billRankPromotePathDict[_type][index] = new Int2(path, vipLevel);
|
| | | index++;
|
| | | }
|
| | | }
|
| | |
|
| | | _funcCfg = FuncConfigConfig.Get("OSCBillboardOpen");
|
| | | _json = LitJson.JsonMapper.ToObject(_funcCfg.Numerical1);
|
| | | openServerActivityDays = int.Parse(_funcCfg.Numerical2);
|
| | |
| | | return x.Condition.CompareTo(y.Condition);
|
| | | }
|
| | |
|
| | | public ImpactRankAwardType GetAwardType(int _type,int _index)
|
| | | public ImpactRankAwardType GetAwardType(int _type, int _index)
|
| | | {
|
| | | if (_index >= billRankCfgDict[_type].Count)
|
| | | {
|
| | |
| | | #endregion
|
| | | public event Action OnSelectRankTypeEvent;
|
| | | private int m_PresentSelectType = 0;
|
| | | public int presentSelectType
|
| | | {
|
| | | public int presentSelectType {
|
| | | get { return m_PresentSelectType; }
|
| | | set
|
| | | {
|
| | | set {
|
| | | m_PresentSelectType = value;
|
| | | if (OnSelectRankTypeEvent != null)
|
| | | {
|
| | |
| | | public class RankAwardItem
|
| | | {
|
| | | private Dictionary<int, List<Item>> m_AwardDict = new Dictionary<int, List<Item>>();
|
| | | public Dictionary<int, List<Item>> AwardDic
|
| | | {
|
| | | public Dictionary<int, List<Item>> AwardDic {
|
| | | get { return m_AwardDict; }
|
| | | }
|
| | | public List<Item> GetAwardItem(int _job)
|
| | |
| | | }
|
| | |
|
| | | private RankType m_PresentBillRankType = RankType.OpenServerMount;
|
| | | public RankType presentBillRankType
|
| | | {
|
| | | public RankType presentBillRankType {
|
| | | get { return m_PresentBillRankType; }
|
| | | set
|
| | | {
|
| | | set {
|
| | | m_PresentBillRankType = value;
|
| | | if (CoroutineMgr.Instance.CanBegRank((int)m_PresentBillRankType))
|
| | | {
|
| | |
| | | {
|
| | | var awardType = GetAwardType(_type, i);
|
| | | var _index = GetBillIndex(_type, i);
|
| | | if (awardType==ImpactRankAwardType.Target)
|
| | | if (awardType == ImpactRankAwardType.Target)
|
| | | {
|
| | | var _cfg = GetTagAwardConfig(_type, i);
|
| | | if (!_playerData.IsTagGet(GetTagIndex(_type, _index)))
|
| | |
| | | #region 主界面特效
|
| | | public bool OSCEffectOpen { get; set; }
|
| | |
|
| | | public bool IsOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | public bool IsOpen {
|
| | | get {
|
| | | return TimeUtility.OpenDay < openServerActivityDays && FuncOpen.Instance.IsFuncOpen(125);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool priorityOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | public bool priorityOpen {
|
| | | get {
|
| | | var state = impactRankRedpoint.state;
|
| | | return state == RedPointState.Simple || state == RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsInImpactRank
|
| | | {
|
| | | get
|
| | | {
|
| | | public bool IsInImpactRank {
|
| | | get {
|
| | | return TimeUtility.OpenDay < openServerRankDays && FuncOpen.Instance.IsFuncOpen(125);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsAdvance
|
| | | {
|
| | | get
|
| | | {
|
| | | public bool IsAdvance {
|
| | | get {
|
| | | return false;
|
| | | }
|
| | | }
|