hch
2018-11-02 9a4e206467ca2aa3113ebc45dace23cdd5ce995f
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -85,6 +85,7 @@
                "ItemCompound":(
                        ("WORD", "ID", 1),
                        ("BYTE", "ComposeGroup", 0),
                        ("list", "MakeID", 0),
                        ("BYTE", "IsFirstSuccMakeJobItem", 0),
                        ("list", "UnfixedItemID", 0),
@@ -1063,6 +1064,12 @@
                        ("DWORD", "FuncID", 1),
                        ("dict", "Award", 0),
                        ),
                "ChatBubbleBox":(
                        ("BYTE", "BoxID", 1),
                        ("WORD", "NeedLV", 0),
                        ("BYTE", "NeedVIPLVGift", 0),
                        ),
                }
@@ -1178,6 +1185,7 @@
    
    def __init__(self):
        self.ID = 0
        self.ComposeGroup = 0
        self.MakeID = []
        self.IsFirstSuccMakeJobItem = 0
        self.UnfixedItemID = []
@@ -1194,6 +1202,7 @@
        return
        
    def GetID(self): return self.ID # 合成配置编号ID
    def GetComposeGroup(self): return self.ComposeGroup # 合成归组类型
    def GetMakeID(self): return self.MakeID # 可合成的道具ID,多个则随机一个
    def GetIsFirstSuccMakeJobItem(self): return self.IsFirstSuccMakeJobItem # 首次成功是否必出本职业
    def GetUnfixedItemID(self): return self.UnfixedItemID # 不固定道具ID, 多个ID时则任意一种均可
@@ -3227,6 +3236,19 @@
        
    def GetFuncID(self): return self.FuncID # 功能ID
    def GetAward(self): return self.Award # 属性类型
# 聊天气泡表
class IPY_ChatBubbleBox():
    def __init__(self):
        self.BoxID = 0
        self.NeedLV = 0
        self.NeedVIPLVGift = 0
        return
    def GetBoxID(self): return self.BoxID # 气泡框ID
    def GetNeedLV(self): return self.NeedLV # 所需等级
    def GetNeedVIPLVGift(self): return self.NeedVIPLVGift # 所需购买VIP等级礼包
def Log(msg, playerID=0, par=0):
@@ -3448,6 +3470,8 @@
        self.ipyWishingWellLen = len(self.ipyWishingWellCache)
        self.ipyFunctionForecastCache = self.__LoadFileData("FunctionForecast", IPY_FunctionForecast)
        self.ipyFunctionForecastLen = len(self.ipyFunctionForecastCache)
        self.ipyChatBubbleBoxCache = self.__LoadFileData("ChatBubbleBox", IPY_ChatBubbleBox)
        self.ipyChatBubbleBoxLen = len(self.ipyChatBubbleBoxCache)
        Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
        Log("IPY_DataMgr InitOK!")
        return
@@ -3810,6 +3834,8 @@
    def GetWishingWellByIndex(self, index): return self.ipyWishingWellCache[index]
    def GetFunctionForecastCount(self): return self.ipyFunctionForecastLen
    def GetFunctionForecastByIndex(self, index): return self.ipyFunctionForecastCache[index]
    def GetChatBubbleBoxCount(self): return self.ipyChatBubbleBoxLen
    def GetChatBubbleBoxByIndex(self, index): return self.ipyChatBubbleBoxCache[index]
IPYData = IPY_DataMgr()
def IPY_Data(): return IPYData