| | |
| | | ("float", "NeedRMB", 0),
|
| | | ("dict", "Reward", 0),
|
| | | ),
|
| | |
|
| | | "CustomAward":(
|
| | | ("BYTE", "AwardID", 1),
|
| | | ("list", "AwardItemList", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | | |
| | |
| | | def GetID(self): return self.ID # id
|
| | | def GetNeedRMB(self): return self.NeedRMB # 所需充值元
|
| | | def GetReward(self): return self.Reward # 职业对应的奖励内容,每个职业4组数据,物品ID和物品数量(1.枪豪2.道师3.剑修) |
| | | |
| | | # 奖励表 |
| | | class IPY_CustomAward(): |
| | | |
| | | def __init__(self): |
| | | self.AwardID = 0
|
| | | self.AwardItemList = [] |
| | | return |
| | | |
| | | def GetAwardID(self): return self.AwardID # 奖励ID 1~n
|
| | | def GetAwardItemList(self): return self.AwardItemList # 物品奖励[[物品ID,个数,是否拍品], ...] |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyFuncSysPrivilegeLen = len(self.ipyFuncSysPrivilegeCache)
|
| | | self.ipyHistoryRechargeAwardCache = self.__LoadFileData("HistoryRechargeAward", IPY_HistoryRechargeAward)
|
| | | self.ipyHistoryRechargeAwardLen = len(self.ipyHistoryRechargeAwardCache)
|
| | | self.ipyCustomAwardCache = self.__LoadFileData("CustomAward", IPY_CustomAward)
|
| | | self.ipyCustomAwardLen = len(self.ipyCustomAwardCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetFuncSysPrivilegeByIndex(self, index): return self.ipyFuncSysPrivilegeCache[index]
|
| | | def GetHistoryRechargeAwardCount(self): return self.ipyHistoryRechargeAwardLen
|
| | | def GetHistoryRechargeAwardByIndex(self, index): return self.ipyHistoryRechargeAwardCache[index]
|
| | | def GetCustomAwardCount(self): return self.ipyCustomAwardLen
|
| | | def GetCustomAwardByIndex(self, index): return self.ipyCustomAwardCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|