| | |
| | | public Dictionary<int, int> openGirdMoneyDict = new Dictionary<int, int>(); //背包类型:消耗货币类型 |
| | | public Dictionary<int, int[]> openGirdMoneyValueDict = new Dictionary<int, int[]>(); //背包类型:消耗货币值(按次数定价) |
| | | public Dictionary<int, int[]> openGirdCountDict = new Dictionary<int, int[]>(); //背包类型:每次开的格子数量 |
| | | public static string StrengthAttrShift_RecordKey = ""; |
| | | public const string RecordKnapsackTitle = "RecordKnapsackTitle"; |
| | | |
| | | |
| | | string RoleEquipLocalSave = ""; |
| | | List<int> LocalSavePlaceArray { get; set; } |
| | | Dictionary<int, List<int>> sharedUseCountItemDict { get; set; } |
| | | // bool isUpdatePlayerLv = false; |
| | | bool isItemChange = false; //延迟处理物品变化 |
| | |
| | | { |
| | | GlobalTimeEvent.Instance.secondEvent -= UpdateSecond; |
| | | // PlayerDatas.Instance.playerDataRefreshEvent -= UpdatePlayerLv; |
| | | LocalSave.DeleteKey(RecordKnapsackTitle); |
| | | playerPackDict.Clear(); |
| | | itemDayUseCntDict.Clear(); |
| | | itemSumUseCntDict.Clear(); |
| | |
| | | |
| | | public void OnPlayerLoginOk() |
| | | { |
| | | //ItemOperateUtility.Instance.RequestWarehouseData(); |
| | | RoleEquipLocalSave = StringUtility.Contact("RoleEquipLocalSave", PlayerDatas.Instance.baseData.PlayerID); |
| | | StrengthAttrShift_RecordKey = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "StrengthAttrShift"); |
| | | if (LocalSave.GetIntArray(RoleEquipLocalSave) != null) |
| | | { |
| | | LocalSavePlaceArray = LocalSave.GetIntArray(RoleEquipLocalSave).ToList(); |
| | | } |
| | | else |
| | | { |
| | | LocalSavePlaceArray = null; |
| | | } |
| | | |
| | | GlobalTimeEvent.Instance.secondEvent += UpdateSecond; |
| | | // PlayerDatas.Instance.playerDataRefreshEvent += UpdatePlayerLv; |
| | | // isUpdatePlayerLv = true; |