| | |
| | | import BossHurtMng
|
| | |
|
| | | import time
|
| | | import json
|
| | | import cPickle
|
| | |
|
| | | Def_Process_Tick = "ProcessPlayerCache"
|
| | | ##玩家下线同步
|
| | |
| | | curPlayerPlusDict["Fruit"] = PlayerAttrFruit.GetAttrFruitEatCntDict(curPlayer)
|
| | |
|
| | | #-----------
|
| | | curPlayerPropData = json.dumps(curPlayerPropDict, ensure_ascii=False)
|
| | | curPlayerItemData = json.dumps(curEquipItemList, ensure_ascii=False)
|
| | | curPlayerPlusData = json.dumps(__RemoveEmptyDataKey(curPlayerPlusDict), ensure_ascii=False)
|
| | | curPlayerPropData = cPickle.dumps(curPlayerPropDict, 2)
|
| | | curPlayerItemData = cPickle.dumps(curEquipItemList, 2)
|
| | | curPlayerPlusData = cPickle.dumps(__RemoveEmptyDataKey(curPlayerPlusDict), 2)
|
| | | return (curPlayerPropData, curPlayerItemData, curPlayerPlusData)
|
| | |
|
| | | def __RemoveEmptyDataKey(dataDict):
|