| | |
| | | //珍宝阁
|
| | | public int zhenbaogeCutState = 0;
|
| | | public int zhenbaogeBuyState = 0;
|
| | | public bool needCheckCutCD = false;
|
| | | public event Action UpdateZhenbaogeEvent;
|
| | | public bool isQueryZBGYet = false;
|
| | | public float lastZBGStartTime = 0; //过天刷新用
|
| | |
| | | isQueryZBGYet = false;
|
| | | familyZBGActions.Clear();
|
| | | sortPlayerCut.Clear();
|
| | | zhenbaogeCutState = 0;
|
| | | zhenbaogeBuyState = 0;
|
| | | needCheckCutCD = false;
|
| | | }
|
| | |
|
| | | private void OnRefreshFairyInfo()
|
| | |
| | |
|
| | | public void UpdateZhenbaogeInfo(HA512_tagMCFamilyZhenbaogeInfo netPack)
|
| | | {
|
| | | zhenbaogeCutState = netPack.CutState;
|
| | | //砍价状态:仙盟里记录已砍价才是真的已砍价状态,封包中的砍价状态用于判断cd间隔使用
|
| | | needCheckCutCD = netPack.CutState == 1;
|
| | | zhenbaogeBuyState = netPack.BuyState;
|
| | | UpdateZhenbaogeEvent?.Invoke();
|
| | | UpdateZBGRedpoint();
|
| | |
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | isQueryZBGYet = false;
|
| | | zhenbaogeCutState = 0;
|
| | | familyZBGActions.Clear();
|
| | | sortPlayerCut.Clear();
|
| | | WindowCenter.Instance.Close<FamilyZBGWin>();
|
| | |
| | |
|
| | | for (int i = 0; i < vNetData.FamilyActionList.Length; i++)
|
| | | {
|
| | | familyZBGActions[(int)vNetData.FamilyActionList[i].Value1] = vNetData.FamilyActionList[i];
|
| | | int playerID = (int)vNetData.FamilyActionList[i].Value1;
|
| | | //自己是否已砍价 从列表中查找
|
| | | if (playerID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | zhenbaogeCutState = 1;
|
| | | }
|
| | | familyZBGActions[playerID] = vNetData.FamilyActionList[i];
|
| | |
|
| | | }
|
| | | sortPlayerCut = familyZBGActions.Keys.ToList();
|