| | |
| | | ("char", "EndDate", 0),
|
| | | ),
|
| | |
|
| | | "ActFeastWish":(
|
| | | ("DWORD", "CfgID", 1),
|
| | | ("char", "ActMark", 0),
|
| | | ("list", "PlatformList", 0),
|
| | | ("list", "ServerGroupIDList", 0),
|
| | | ("char", "StartDate", 0),
|
| | | ("char", "EndDate", 0),
|
| | | ("BYTE", "ResetType", 0),
|
| | | ("dict", "NotifyInfoStart", 0),
|
| | | ("dict", "NotifyInfoEnd", 0),
|
| | | ("list", "NotifyInfoLoop", 0),
|
| | | ),
|
| | |
|
| | | "FuncOpenLV":(
|
| | | ("DWORD", "FuncId", 1),
|
| | | ("DWORD", "LimitLV", 0),
|
| | |
| | | def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器ID列表
|
| | | def GetStartDate(self): return self.StartDate # 开启日期
|
| | | def GetEndDate(self): return self.EndDate # 结束日期 |
| | | |
| | | # 节日祝福时间表 |
| | | class IPY_ActFeastWish(): |
| | | |
| | | def __init__(self): |
| | | self.CfgID = 0
|
| | | self.ActMark = ""
|
| | | self.PlatformList = []
|
| | | self.ServerGroupIDList = []
|
| | | self.StartDate = ""
|
| | | self.EndDate = ""
|
| | | self.ResetType = 0
|
| | | self.NotifyInfoStart = {}
|
| | | self.NotifyInfoEnd = {}
|
| | | self.NotifyInfoLoop = [] |
| | | return |
| | | |
| | | def GetCfgID(self): return self.CfgID # 配置ID
|
| | | def GetActMark(self): return self.ActMark # 活动组标记
|
| | | def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有
|
| | | def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器ID列表
|
| | | def GetStartDate(self): return self.StartDate # 开启日期
|
| | | def GetEndDate(self): return self.EndDate # 结束日期
|
| | | 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] |
| | | |
| | | # 等级开启功能 |
| | | class IPY_FuncOpenLV(): |
| | |
| | | self.ipyActFeastRedPacketLen = len(self.ipyActFeastRedPacketCache)
|
| | | self.ipyActFeastLoginCache = self.__LoadFileData("ActFeastLogin", IPY_ActFeastLogin)
|
| | | self.ipyActFeastLoginLen = len(self.ipyActFeastLoginCache)
|
| | | self.ipyActFeastWishCache = self.__LoadFileData("ActFeastWish", IPY_ActFeastWish)
|
| | | self.ipyActFeastWishLen = len(self.ipyActFeastWishCache)
|
| | | self.ipyFuncOpenLVCache = self.__LoadFileData("FuncOpenLV", IPY_FuncOpenLV)
|
| | | self.ipyFuncOpenLVLen = len(self.ipyFuncOpenLVCache)
|
| | | self.ipyChinNPCCache = self.__LoadFileData("ChinNPC", IPY_ChinNPC)
|
| | |
| | | def GetActFeastRedPacketByIndex(self, index): return self.ipyActFeastRedPacketCache[index]
|
| | | def GetActFeastLoginCount(self): return self.ipyActFeastLoginLen
|
| | | def GetActFeastLoginByIndex(self, index): return self.ipyActFeastLoginCache[index]
|
| | | def GetActFeastWishCount(self): return self.ipyActFeastWishLen
|
| | | def GetActFeastWishByIndex(self, index): return self.ipyActFeastWishCache[index]
|
| | | def GetFuncOpenLVCount(self): return self.ipyFuncOpenLVLen
|
| | | def GetFuncOpenLVByIndex(self, index): return self.ipyFuncOpenLVCache[index]
|
| | | def GetChinNPCCount(self): return self.ipyChinNPCLen
|