| | |
| | | public Dictionary<int, List<int>> gatherSoulPropertys { get; private set; }
|
| | |
|
| | | public List<int> packIndexs { get; private set; }
|
| | | public List<int> topBestSoulIndexs = new List<int>();
|
| | | public List<GatherSoulItem> resolveItems { get; private set; }
|
| | |
|
| | | public int holeCount
|
| | |
| | | public int coreHole { get; private set; }
|
| | |
|
| | | public int autoResolveRemainCount { get; private set; }
|
| | |
|
| | | public bool serverInited { get; private set; }
|
| | |
|
| | | public event Action<PackType, int> prepareResolveEvent;
|
| | |
|
| | |
|
| | | public event Action<int> gatherSoulHoleRefresh;
|
| | | public event Action gatherSoulHolesRefresh;
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | serverInited = false;
|
| | | packIndexs.Clear();
|
| | | topBestSoulIndexs.Clear();
|
| | | gatherSoulHoleDict.Clear();
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | serverInited = true;
|
| | | CheckAutoResolve();
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
| | | public void RefreshGatherSoulPack()
|
| | | {
|
| | | packIndexs.Clear();
|
| | | topBestSoulIndexs.Clear();
|
| | | List<int> emptyHoles;
|
| | | if (ExistEmptyHole(out emptyHoles))
|
| | | {
|
| | |
| | | {
|
| | | packIndexs.RemoveAt(removeList[i]);
|
| | | }
|
| | | topBestSoulIndexs.AddRange(packIndexs);
|
| | | }
|
| | |
|
| | | public bool ExistEmptyHole(out List<int> list)
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (prepareResolveEvent != null)
|
| | | {
|
| | | prepareResolveEvent(item.placeType == 0 ? PackType.rptGatherSoul : PackType.rptInterimPack,
|
| | | item.index);
|
| | | }
|
| | | SendResolvePack(new ushort[1] { (ushort)item.index }, false);
|
| | | }
|
| | |
|