| | |
| | | ("BYTE", "AwardID", 1),
|
| | | ("list", "AwardItemList", 0),
|
| | | ),
|
| | |
|
| | | "Zhanling":(
|
| | | ("BYTE", "ZhanlingType", 1),
|
| | | ("DWORD", "NeedValue", 1),
|
| | | ("BYTE", "RewardIndex", 0),
|
| | | ("list", "FreeRewardItemList", 0),
|
| | | ("list", "ZLRewardItemList", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | | |
| | |
| | | |
| | | def GetAwardID(self): return self.AwardID # 奖励ID 1~n
|
| | | def GetAwardItemList(self): return self.AwardItemList # 物品奖励[[物品ID,个数,是否拍品], ...] |
| | | |
| | | # 战令表 |
| | | class IPY_Zhanling(): |
| | | |
| | | def __init__(self): |
| | | self.ZhanlingType = 0
|
| | | self.NeedValue = 0
|
| | | self.RewardIndex = 0
|
| | | self.FreeRewardItemList = []
|
| | | self.ZLRewardItemList = [] |
| | | return |
| | | |
| | | def GetZhanlingType(self): return self.ZhanlingType # 战令类型
|
| | | def GetNeedValue(self): return self.NeedValue # 所需值
|
| | | def GetRewardIndex(self): return self.RewardIndex # 奖励记录索引,0~n,同个战令类型不可重复
|
| | | def GetFreeRewardItemList(self): return self.FreeRewardItemList # 免费奖励物品列表 [[物品ID,个数,是否拍品],...]
|
| | | def GetZLRewardItemList(self): return self.ZLRewardItemList # 战令奖励物品列表 [[物品ID,个数,是否拍品],...] |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyHistoryRechargeAwardLen = len(self.ipyHistoryRechargeAwardCache)
|
| | | self.ipyCustomAwardCache = self.__LoadFileData("CustomAward", IPY_CustomAward)
|
| | | self.ipyCustomAwardLen = len(self.ipyCustomAwardCache)
|
| | | self.ipyZhanlingCache = self.__LoadFileData("Zhanling", IPY_Zhanling)
|
| | | self.ipyZhanlingLen = len(self.ipyZhanlingCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetHistoryRechargeAwardByIndex(self, index): return self.ipyHistoryRechargeAwardCache[index]
|
| | | def GetCustomAwardCount(self): return self.ipyCustomAwardLen
|
| | | def GetCustomAwardByIndex(self, index): return self.ipyCustomAwardCache[index]
|
| | | def GetZhanlingCount(self): return self.ipyZhanlingLen
|
| | | def GetZhanlingByIndex(self, index): return self.ipyZhanlingCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|