|  |  |  | 
|---|
|  |  |  | ("BYTE", "RefreshType", 0), | 
|---|
|  |  |  | ("DWORD", "ServerLimitCnt", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ActWishingWell":( | 
|---|
|  |  |  | ("DWORD", "CfgID", 1), | 
|---|
|  |  |  | ("char", "ActMark", 0), | 
|---|
|  |  |  | ("list", "ServerIDList", 0), | 
|---|
|  |  |  | ("char", "StartDate", 0), | 
|---|
|  |  |  | ("char", "EndDate", 0), | 
|---|
|  |  |  | ("BYTE", "IsDayReset", 0), | 
|---|
|  |  |  | ("BYTE", "ResetType", 0), | 
|---|
|  |  |  | ("dict", "NotifyInfoStart", 0), | 
|---|
|  |  |  | ("dict", "NotifyInfoEnd", 0), | 
|---|
|  |  |  | ("list", "NotifyInfoLoop", 0), | 
|---|
|  |  |  | ("WORD", "LVLimit", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetShopType(self): return self.ShopType # 商店类型 | 
|---|
|  |  |  | def GetRefreshType(self): return self.RefreshType # 刷新类型 0-不重置,1-onWeek0点,2-onWeek5点,3-OnDay0点,4-OnDay5点 | 
|---|
|  |  |  | def GetServerLimitCnt(self): return self.ServerLimitCnt # 全服限制数量 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 许愿池活动时间表 | 
|---|
|  |  |  | class IPY_ActWishingWell(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __init__(self): | 
|---|
|  |  |  | self.CfgID = 0 | 
|---|
|  |  |  | self.ActMark = "" | 
|---|
|  |  |  | self.ServerIDList = [] | 
|---|
|  |  |  | self.StartDate = "" | 
|---|
|  |  |  | self.EndDate = "" | 
|---|
|  |  |  | self.IsDayReset = 0 | 
|---|
|  |  |  | self.ResetType = 0 | 
|---|
|  |  |  | self.NotifyInfoStart = {} | 
|---|
|  |  |  | self.NotifyInfoEnd = {} | 
|---|
|  |  |  | self.NotifyInfoLoop = [] | 
|---|
|  |  |  | self.LVLimit = 0 | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetCfgID(self): return self.CfgID # 配置ID | 
|---|
|  |  |  | def GetActMark(self): return self.ActMark # 活动组标记 | 
|---|
|  |  |  | def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 | 
|---|
|  |  |  | def GetStartDate(self): return self.StartDate # 开启日期 | 
|---|
|  |  |  | def GetEndDate(self): return self.EndDate # 结束日期 | 
|---|
|  |  |  | def GetIsDayReset(self): return self.IsDayReset # 是否每天重置 | 
|---|
|  |  |  | def GetResetType(self): return self.ResetType # 重置类型,0-0点重置;1-5点重置 | 
|---|
|  |  |  | def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 | 
|---|
|  |  |  | def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 | 
|---|
|  |  |  | def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] | 
|---|
|  |  |  | def GetLVLimit(self): return self.LVLimit # 限制等级 | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def Log(msg, playerID=0, par=0): | 
|---|
|  |  |  | 
|---|
|  |  |  | self.ipyActFlashSaleLen = len(self.ipyActFlashSaleCache) | 
|---|
|  |  |  | self.ipyStoreCache = self.__LoadFileData("Store", IPY_Store) | 
|---|
|  |  |  | self.ipyStoreLen = len(self.ipyStoreCache) | 
|---|
|  |  |  | self.ipyActWishingWellCache = self.__LoadFileData("ActWishingWell", IPY_ActWishingWell) | 
|---|
|  |  |  | self.ipyActWishingWellLen = len(self.ipyActWishingWellCache) | 
|---|
|  |  |  | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) | 
|---|
|  |  |  | Log("IPY_DataMgr InitOK!") | 
|---|
|  |  |  | return | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetActFlashSaleByIndex(self, index): return self.ipyActFlashSaleCache[index] | 
|---|
|  |  |  | def GetStoreCount(self): return self.ipyStoreLen | 
|---|
|  |  |  | def GetStoreByIndex(self, index): return self.ipyStoreCache[index] | 
|---|
|  |  |  | def GetActWishingWellCount(self): return self.ipyActWishingWellLen | 
|---|
|  |  |  | def GetActWishingWellByIndex(self, index): return self.ipyActWishingWellCache[index] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IPYData = IPY_DataMgr() | 
|---|
|  |  |  | def IPY_Data(): return IPYData | 
|---|