| | |
| | | ("dict", "LimitInfo", 0),
|
| | | ),
|
| | |
|
| | | "AuctionItem":(
|
| | | ("DWORD", "AuctionItemID", 1),
|
| | | ("BYTE", "NoticeSaleMinutes", 0),
|
| | | ("WORD", "FamilySaleMinutes", 0),
|
| | | ("WORD", "WorldSaleMinutes", 0),
|
| | | ("WORD", "BasePrice", 0),
|
| | | ("WORD", "BuyoutPrice", 0),
|
| | | ("WORD", "BiddingAdd", 0),
|
| | | ("BYTE", "NeedWorldNotify", 0),
|
| | | ("BYTE", "Sortpriority", 0),
|
| | | ),
|
| | |
|
| | | "DailyAction":(
|
| | | ("DWORD", "DailyID", 1),
|
| | | ("dict", "OpenTimeDict", 0),
|
| | |
| | | ("BYTE", "ResetType", 0),
|
| | | ("dict", "NotifyInfoStart", 0),
|
| | | ("dict", "NotifyInfoEnd", 0),
|
| | | ("list", "NotifyInfoLoop", 0),
|
| | | ("WORD", "LVLimit", 0),
|
| | | ),
|
| | |
|
| | |
| | | ("dict", "NotifyInfoEnd", 0),
|
| | | ("list", "NotifyInfoLoop", 0),
|
| | | ("WORD", "LVLimit", 0),
|
| | | ),
|
| | |
|
| | | "FamilyWarRankAward":(
|
| | | ("WORD", "WarWorldLV", 1),
|
| | | ("BYTE", "WarRank", 0),
|
| | | ("list", "RankAuctionItem", 0),
|
| | | ),
|
| | |
|
| | | "FairyDomain":(
|
| | | ("WORD", "ID", 1),
|
| | | ("DWORD", "HourCntPubLimit", 0),
|
| | | ("DWORD", "DayCntPubLimit", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | |
| | | |
| | | def GetQueryType(self): return self.QueryType # 查询类型
|
| | | def GetLimitInfo(self): return self.LimitInfo # 限制条件 |
| | | |
| | | # 拍卖物品表 |
| | | class IPY_AuctionItem(): |
| | | |
| | | def __init__(self): |
| | | self.AuctionItemID = 0
|
| | | self.NoticeSaleMinutes = 0
|
| | | self.FamilySaleMinutes = 0
|
| | | self.WorldSaleMinutes = 0
|
| | | self.BasePrice = 0
|
| | | self.BuyoutPrice = 0
|
| | | self.BiddingAdd = 0
|
| | | self.NeedWorldNotify = 0
|
| | | self.Sortpriority = 0 |
| | | return |
| | | |
| | | def GetAuctionItemID(self): return self.AuctionItemID
|
| | | def GetNoticeSaleMinutes(self): return self.NoticeSaleMinutes # 预告拍卖分钟
|
| | | def GetFamilySaleMinutes(self): return self.FamilySaleMinutes # 仙盟拍卖分钟
|
| | | def GetWorldSaleMinutes(self): return self.WorldSaleMinutes # 全服拍卖分钟
|
| | | def GetBasePrice(self): return self.BasePrice # 起拍价
|
| | | def GetBuyoutPrice(self): return self.BuyoutPrice # 一口价
|
| | | def GetBiddingAdd(self): return self.BiddingAdd # 竞价增加
|
| | | def GetNeedWorldNotify(self): return self.NeedWorldNotify # 是否需要广播
|
| | | def GetSortpriority(self): return self.Sortpriority # 排序优先级归组 |
| | | |
| | | # 日常活动表 |
| | | class IPY_DailyAction(): |
| | |
| | | self.ResetType = 0
|
| | | self.NotifyInfoStart = {}
|
| | | self.NotifyInfoEnd = {}
|
| | | self.NotifyInfoLoop = []
|
| | | self.LVLimit = 0 |
| | | return |
| | | |
| | |
| | | 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 GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间
|
| | | def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key]
|
| | | def GetLVLimit(self): return self.LVLimit # 限制等级 |
| | | |
| | | # 仙盟联赛排名奖励表 |
| | | class IPY_FamilyWarRankAward(): |
| | | |
| | | def __init__(self): |
| | | self.WarWorldLV = 0
|
| | | self.WarRank = 0
|
| | | self.RankAuctionItem = [] |
| | | return |
| | | |
| | | def GetWarWorldLV(self): return self.WarWorldLV # 联赛世界等级
|
| | | def GetWarRank(self): return self.WarRank # 联赛排名
|
| | | def GetRankAuctionItem(self): return self.RankAuctionItem # 拍品奖励[[拍品ID,个数], ...] |
| | | |
| | | # 缥缈仙域表 |
| | | class IPY_FairyDomain(): |
| | | |
| | | def __init__(self): |
| | | self.ID = 0
|
| | | self.HourCntPubLimit = 0
|
| | | self.DayCntPubLimit = 0 |
| | | return |
| | | |
| | | def GetID(self): return self.ID # 事件编号
|
| | | def GetHourCntPubLimit(self): return self.HourCntPubLimit # 全服每小时次数限制
|
| | | def GetDayCntPubLimit(self): return self.DayCntPubLimit # 全服每天次数限制 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyFamilyLen = len(self.ipyFamilyCache)
|
| | | self.ipyMarketQueryCache = self.__LoadFileData("MarketQuery", IPY_MarketQuery)
|
| | | self.ipyMarketQueryLen = len(self.ipyMarketQueryCache)
|
| | | self.ipyAuctionItemCache = self.__LoadFileData("AuctionItem", IPY_AuctionItem)
|
| | | self.ipyAuctionItemLen = len(self.ipyAuctionItemCache)
|
| | | self.ipyDailyActionCache = self.__LoadFileData("DailyAction", IPY_DailyAction)
|
| | | self.ipyDailyActionLen = len(self.ipyDailyActionCache)
|
| | | self.ipyDailyActionCustomCache = self.__LoadFileData("DailyActionCustom", IPY_DailyActionCustom)
|
| | |
| | | self.ipyNewUniquenessArriveLen = len(self.ipyNewUniquenessArriveCache)
|
| | | self.ipyActLuckyTreasureCache = self.__LoadFileData("ActLuckyTreasure", IPY_ActLuckyTreasure)
|
| | | self.ipyActLuckyTreasureLen = len(self.ipyActLuckyTreasureCache)
|
| | | self.ipyFamilyWarRankAwardCache = self.__LoadFileData("FamilyWarRankAward", IPY_FamilyWarRankAward)
|
| | | self.ipyFamilyWarRankAwardLen = len(self.ipyFamilyWarRankAwardCache)
|
| | | self.ipyFairyDomainCache = self.__LoadFileData("FairyDomain", IPY_FairyDomain)
|
| | | self.ipyFairyDomainLen = len(self.ipyFairyDomainCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetFamilyByIndex(self, index): return self.ipyFamilyCache[index]
|
| | | def GetMarketQueryCount(self): return self.ipyMarketQueryLen
|
| | | def GetMarketQueryByIndex(self, index): return self.ipyMarketQueryCache[index]
|
| | | def GetAuctionItemCount(self): return self.ipyAuctionItemLen
|
| | | def GetAuctionItemByIndex(self, index): return self.ipyAuctionItemCache[index]
|
| | | def GetDailyActionCount(self): return self.ipyDailyActionLen
|
| | | def GetDailyActionByIndex(self, index): return self.ipyDailyActionCache[index]
|
| | | def GetDailyActionCustomCount(self): return self.ipyDailyActionCustomLen
|
| | |
| | | def GetNewUniquenessArriveByIndex(self, index): return self.ipyNewUniquenessArriveCache[index]
|
| | | def GetActLuckyTreasureCount(self): return self.ipyActLuckyTreasureLen
|
| | | def GetActLuckyTreasureByIndex(self, index): return self.ipyActLuckyTreasureCache[index]
|
| | | def GetFamilyWarRankAwardCount(self): return self.ipyFamilyWarRankAwardLen
|
| | | def GetFamilyWarRankAwardByIndex(self, index): return self.ipyFamilyWarRankAwardCache[index]
|
| | | def GetFairyDomainCount(self): return self.ipyFairyDomainLen
|
| | | def GetFairyDomainByIndex(self, index): return self.ipyFairyDomainCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|