80 【常规】背包-服务端(A801通知优化,单物品总数量支持超20亿;)
| | |
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("ItemID", c_int),
|
| | | ("Count", c_int), |
| | | ("Count", c_int), # 求余亿部分,个别功能单次汇总可能超20亿,如批量遣散,固统一规则
|
| | | ("CountEx", c_int), # 整除亿部分
|
| | | ("IsBind", c_ubyte),
|
| | | ]
|
| | |
|
| | |
| | | def Clear(self):
|
| | | self.ItemID = 0
|
| | | self.Count = 0
|
| | | self.CountEx = 0
|
| | | self.IsBind = 0
|
| | | return
|
| | |
|
| | |
| | | DumpString = '''// A8 01 获得奖励信息 //tagMCGiveAwardInfo:
|
| | | ItemID:%d,
|
| | | Count:%d,
|
| | | CountEx:%d,
|
| | | IsBind:%d
|
| | | '''\
|
| | | %(
|
| | | self.ItemID,
|
| | | self.Count,
|
| | | self.CountEx,
|
| | | self.IsBind
|
| | | )
|
| | | return DumpString
|
| | |
| | | continue
|
| | | item = ChPyNetSendPack.tagMCGiveAwardItem()
|
| | | item.ItemID = itemID
|
| | | item.Count = itemCount
|
| | | item.Count = itemCount % ChConfig.Def_PerPointValue
|
| | | item.CountEx = itemCount / ChConfig.Def_PerPointValue
|
| | | item.IsBind = isBind
|
| | | clientPack.ItemList.append(item)
|
| | | clientPack.ItemLen = len(clientPack.ItemList)
|