| | |
| | | ("BYTE", "IsDayReset", 0),
|
| | | ),
|
| | |
|
| | | "ActDailyGiftbag":(
|
| | | ("DWORD", "CfgID", 1),
|
| | | ("char", "ActMark", 0),
|
| | | ("list", "PlatformList", 0),
|
| | | ("list", "ServerIDList", 0),
|
| | | ("char", "StartDate", 0),
|
| | | ("char", "EndDate", 0),
|
| | | ),
|
| | |
|
| | | "ActExpRate":(
|
| | | ("DWORD", "CfgID", 1),
|
| | | ("list", "ServerGroupIDList", 0),
|
| | |
| | | def GetLVLimit(self): return self.LVLimit # 限制等级
|
| | | def GetIsDayReset(self): return self.IsDayReset # 是否每天重置 |
| | | |
| | | # 每日礼包表 |
| | | class IPY_ActDailyGiftbag(): |
| | | |
| | | def __init__(self): |
| | | self.CfgID = 0
|
| | | self.ActMark = ""
|
| | | self.PlatformList = []
|
| | | self.ServerIDList = []
|
| | | self.StartDate = ""
|
| | | self.EndDate = "" |
| | | return |
| | | |
| | | def GetCfgID(self): return self.CfgID # 配置ID
|
| | | def GetActMark(self): return self.ActMark # 活动组标记
|
| | | def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有
|
| | | def GetServerIDList(self): return self.ServerIDList # 服务器ID列表
|
| | | def GetStartDate(self): return self.StartDate # 开启日期
|
| | | def GetEndDate(self): return self.EndDate # 结束日期 |
| | | |
| | | # 双倍经验活动表 |
| | | class IPY_ActExpRate(): |
| | | |
| | |
| | | self.ipyActSpringSaleLen = len(self.ipyActSpringSaleCache)
|
| | | self.ipyActFlashGiftbagCache = self.__LoadFileData("ActFlashGiftbag", IPY_ActFlashGiftbag)
|
| | | self.ipyActFlashGiftbagLen = len(self.ipyActFlashGiftbagCache)
|
| | | self.ipyActDailyGiftbagCache = self.__LoadFileData("ActDailyGiftbag", IPY_ActDailyGiftbag)
|
| | | self.ipyActDailyGiftbagLen = len(self.ipyActDailyGiftbagCache)
|
| | | self.ipyActExpRateCache = self.__LoadFileData("ActExpRate", IPY_ActExpRate)
|
| | | self.ipyActExpRateLen = len(self.ipyActExpRateCache)
|
| | | self.ipyActCostRebateCache = self.__LoadFileData("ActCostRebate", IPY_ActCostRebate)
|
| | |
| | | def GetActSpringSaleByIndex(self, index): return self.ipyActSpringSaleCache[index]
|
| | | def GetActFlashGiftbagCount(self): return self.ipyActFlashGiftbagLen
|
| | | def GetActFlashGiftbagByIndex(self, index): return self.ipyActFlashGiftbagCache[index]
|
| | | def GetActDailyGiftbagCount(self): return self.ipyActDailyGiftbagLen
|
| | | def GetActDailyGiftbagByIndex(self, index): return self.ipyActDailyGiftbagCache[index]
|
| | | def GetActExpRateCount(self): return self.ipyActExpRateLen
|
| | | def GetActExpRateByIndex(self, index): return self.ipyActExpRateCache[index]
|
| | | def GetActCostRebateCount(self): return self.ipyActCostRebateLen
|