| | |
| | | ("DWORD", "NeedPoint", 0),
|
| | | ("dict", "Award", 0),
|
| | | ),
|
| | |
|
| | | "MapEventPoint":(
|
| | | ("DWORD", "MapID", 1),
|
| | | ("DWORD", "NPCID", 1),
|
| | | ("WORD", "LowLV", 0),
|
| | | ("WORD", "HighestLV", 0),
|
| | | ("DWORD", "Defense", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | | |
| | |
| | | def GetIndex(self): return self.Index # 索引
|
| | | def GetNeedPoint(self): return self.NeedPoint # 需要点数
|
| | | def GetAward(self): return self.Award # 奖励 {"职业":[[物品ID,个数,是否绑定],...], ...} |
| | | |
| | | # 地图NPC配置表-挂机点 |
| | | class IPY_MapEventPoint(): |
| | | |
| | | def __init__(self): |
| | | self.MapID = 0
|
| | | self.NPCID = 0
|
| | | self.LowLV = 0
|
| | | self.HighestLV = 0
|
| | | self.Defense = 0 |
| | | return |
| | | |
| | | def GetMapID(self): return self.MapID
|
| | | def GetNPCID(self): return self.NPCID
|
| | | def GetLowLV(self): return self.LowLV # 推荐最低等级
|
| | | def GetHighestLV(self): return self.HighestLV # 推荐最高等级
|
| | | def GetDefense(self): return self.Defense # 推荐防御 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyAllPeoplePartyLen = len(self.ipyAllPeoplePartyCache)
|
| | | self.ipyAllPeoplePartyAwardCache = self.__LoadFileData("AllPeoplePartyAward", IPY_AllPeoplePartyAward)
|
| | | self.ipyAllPeoplePartyAwardLen = len(self.ipyAllPeoplePartyAwardCache)
|
| | | self.ipyMapEventPointCache = self.__LoadFileData("MapEventPoint", IPY_MapEventPoint)
|
| | | self.ipyMapEventPointLen = len(self.ipyMapEventPointCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetAllPeoplePartyByIndex(self, index): return self.ipyAllPeoplePartyCache[index]
|
| | | def GetAllPeoplePartyAwardCount(self): return self.ipyAllPeoplePartyAwardLen
|
| | | def GetAllPeoplePartyAwardByIndex(self, index): return self.ipyAllPeoplePartyAwardCache[index]
|
| | | def GetMapEventPointCount(self): return self.ipyMapEventPointLen
|
| | | def GetMapEventPointByIndex(self, index): return self.ipyMapEventPointCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|