hxp
2025-10-27 6641154f22dbfafdd14f047f7a2491a9bbeae723
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py
@@ -25888,6 +25888,7 @@
        ('FamilyID', ctypes.c_ulong),
        ('FamilyName', ctypes.c_char * 33),
        ('FamilyEmblemID', ctypes.c_ushort),
        ('FamilyEmblemWord', ctypes.c_char * 3),
        ('TitleID', ctypes.c_ulong),
        ('FightPower', ctypes.c_ulong),
        ('FightPowerEx', ctypes.c_ulong),
@@ -25915,6 +25916,7 @@
        self.FamilyID = 0
        self.FamilyName = ''
        self.FamilyEmblemID = 0
        self.FamilyEmblemWord = ''
        self.TitleID = 0
        self.FightPower = 0
        self.FightPowerEx = 0
@@ -25944,6 +25946,7 @@
        self.FamilyID, pos = CommFunc.ReadDWORD(buf, pos)
        self.FamilyName, pos = CommFunc.ReadString(buf, pos, 33)
        self.FamilyEmblemID, pos = CommFunc.ReadWORD(buf, pos)
        self.FamilyEmblemWord, pos = CommFunc.ReadString(buf, pos, 3)
        self.TitleID, pos = CommFunc.ReadDWORD(buf, pos)
        self.FightPower, pos = CommFunc.ReadDWORD(buf, pos)
        self.FightPowerEx, pos = CommFunc.ReadDWORD(buf, pos)
@@ -25968,6 +25971,7 @@
        buf = CommFunc.WriteDWORD(buf, self.FamilyID)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 33, self.FamilyName)
        buf = CommFunc.WriteWORD(buf, self.FamilyEmblemID)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 3, self.FamilyEmblemWord)
        buf = CommFunc.WriteDWORD(buf, self.TitleID)
        buf = CommFunc.WriteDWORD(buf, self.FightPower)
        buf = CommFunc.WriteDWORD(buf, self.FightPowerEx)
@@ -25991,6 +25995,7 @@
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_char) * 33
        length += sizeof(ctypes.c_ushort)
        length += sizeof(ctypes.c_char) * 3
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
@@ -26015,6 +26020,7 @@
        rec[u'FamilyID'] = self.FamilyID
        rec[u'FamilyName'] = fix_incomingText(self.FamilyName)
        rec[u'FamilyEmblemID'] = self.FamilyEmblemID
        rec[u'FamilyEmblemWord'] = fix_incomingText(self.FamilyEmblemWord)
        rec[u'TitleID'] = self.TitleID
        rec[u'FightPower'] = self.FightPower
        rec[u'FightPowerEx'] = self.FightPowerEx
@@ -26038,6 +26044,7 @@
        self.FamilyID = rec.get(u'FamilyID', 0)
        self.FamilyName = fix_outgoingText(rec.get(u'FamilyName', u''))
        self.FamilyEmblemID = rec.get(u'FamilyEmblemID', 0)
        self.FamilyEmblemWord = fix_outgoingText(rec.get(u'FamilyEmblemWord', u''))
        self.TitleID = rec.get(u'TitleID', 0)
        self.FightPower = rec.get(u'FightPower', 0)
        self.FightPowerEx = rec.get(u'FightPowerEx', 0)
@@ -26160,6 +26167,7 @@
            FamilyID = %s,
            FamilyName = %s,
            FamilyEmblemID = %s,
            FamilyEmblemWord = %s,
            TitleID = %s,
            FightPower = %s,
            FightPowerEx = %s,
@@ -26181,6 +26189,7 @@
                self.FamilyID,
                self.FamilyName,
                self.FamilyEmblemID,
                self.FamilyEmblemWord,
                self.TitleID,
                self.FightPower,
                self.FightPowerEx,
@@ -26193,7 +26202,7 @@
        return output
    def dumpString(self):
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
                self.PlayerID,
                self.AccID,
                self.PlayerName,
@@ -26206,6 +26215,7 @@
                self.FamilyID,
                self.FamilyName,
                self.FamilyEmblemID,
                self.FamilyEmblemWord,
                self.TitleID,
                self.FightPower,
                self.FightPowerEx,
@@ -26235,6 +26245,12 @@
        else:
            self.FamilyName = Str[:33]
            
    def SetFamilyEmblemWord(self,Str):
        if len(Str)<=3:
            self.FamilyEmblemWord = Str
        else:
            self.FamilyEmblemWord = Str[:3]
# 排行榜表 #tagDBBillboard
class tagDBBillboard(Structure):
@@ -26259,6 +26275,7 @@
        ('CmpValue', ctypes.c_ulong),
        ('CmpValue2', ctypes.c_ulong),
        ('CmpValue3', ctypes.c_ulong),
        ('Time', ctypes.c_ulong),
        ('DataLen', ctypes.c_ushort),
        ('UserData', ctypes.c_char_p),
        ('ADOResult', ctypes.c_ulong),
@@ -26288,6 +26305,7 @@
        self.CmpValue = 0
        self.CmpValue2 = 0
        self.CmpValue3 = 0
        self.Time = 0
        self.DataLen = 0
        self.UserData = ''
@@ -26319,6 +26337,7 @@
        self.CmpValue, pos = CommFunc.ReadDWORD(buf, pos)
        self.CmpValue2, pos = CommFunc.ReadDWORD(buf, pos)
        self.CmpValue3, pos = CommFunc.ReadDWORD(buf, pos)
        self.Time, pos = CommFunc.ReadDWORD(buf, pos)
        self.DataLen, pos = CommFunc.ReadWORD(buf, pos)
        tmp, pos = CommFunc.ReadString(buf, pos, self.DataLen)
        self.UserData = ctypes.c_char_p(tmp)
@@ -26345,6 +26364,7 @@
        buf = CommFunc.WriteDWORD(buf, self.CmpValue)
        buf = CommFunc.WriteDWORD(buf, self.CmpValue2)
        buf = CommFunc.WriteDWORD(buf, self.CmpValue3)
        buf = CommFunc.WriteDWORD(buf, self.Time)
        buf = CommFunc.WriteWORD(buf, self.DataLen)
        buf = CommFunc.WriteString(buf, self.DataLen, self.UserData)
        return buf
@@ -26359,6 +26379,7 @@
        length += sizeof(ctypes.c_char) * 33
        length += sizeof(ctypes.c_char) * 65
        length += sizeof(ctypes.c_ubyte)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
@@ -26396,6 +26417,7 @@
        rec[u'CmpValue'] = self.CmpValue
        rec[u'CmpValue2'] = self.CmpValue2
        rec[u'CmpValue3'] = self.CmpValue3
        rec[u'Time'] = self.Time
        rec[u'DataLen'] = self.DataLen
        rec[u'UserData'] = fix_incomingText(self.UserData)
        return rec
@@ -26421,6 +26443,7 @@
        self.CmpValue = rec.get(u'CmpValue', 0)
        self.CmpValue2 = rec.get(u'CmpValue2', 0)
        self.CmpValue3 = rec.get(u'CmpValue3', 0)
        self.Time = rec.get(u'Time', 0)
        self.DataLen = rec.get(u'DataLen', 0)
        self.UserData = fix_outgoingText(rec.get(u'UserData', u''))
@@ -26477,6 +26500,7 @@
            CmpValue = %s,
            CmpValue2 = %s,
            CmpValue3 = %s,
            Time = %s,
            DataLen = %s,
            UserData = %s,
            ADOResult = %s,
@@ -26500,6 +26524,7 @@
                self.CmpValue,
                self.CmpValue2,
                self.CmpValue3,
                self.Time,
                self.DataLen,
                self.UserData,
                self.ADOResult,
@@ -26507,7 +26532,7 @@
        return output
    def dumpString(self):
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
                self.GroupValue1,
                self.GroupValue2,
                self.BillboardType,
@@ -26527,6 +26552,7 @@
                self.CmpValue,
                self.CmpValue2,
                self.CmpValue3,
                self.Time,
                self.DataLen,
                self.UserData,
            )
@@ -27247,6 +27273,7 @@
        ('FightPower', ctypes.c_ulong),
        ('FightPowerEx', ctypes.c_ulong),
        ('EmblemID', ctypes.c_ushort),
        ('EmblemWord', ctypes.c_char * 3),
        ('ADOResult', ctypes.c_ulong),
    ]
@@ -27269,6 +27296,7 @@
        self.FightPower = 0
        self.FightPowerEx = 0
        self.EmblemID = 0
        self.EmblemWord = ''
    def readData(self, buf, pos = 0, length = 0):
        if not pos <= length:
@@ -27294,6 +27322,7 @@
        self.FightPower, pos = CommFunc.ReadDWORD(buf, pos)
        self.FightPowerEx, pos = CommFunc.ReadDWORD(buf, pos)
        self.EmblemID, pos = CommFunc.ReadWORD(buf, pos)
        self.EmblemWord, pos = CommFunc.ReadString(buf, pos, 3)
        return self.getLength()
    def getBuffer(self):
@@ -27312,6 +27341,7 @@
        buf = CommFunc.WriteDWORD(buf, self.FightPower)
        buf = CommFunc.WriteDWORD(buf, self.FightPowerEx)
        buf = CommFunc.WriteWORD(buf, self.EmblemID)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 3, self.EmblemWord)
        return buf
    def getLength(self):
@@ -27330,6 +27360,7 @@
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ushort)
        length += sizeof(ctypes.c_char) * 3
        return length
    def getRecord(self):
@@ -27349,6 +27380,7 @@
        rec[u'FightPower'] = self.FightPower
        rec[u'FightPowerEx'] = self.FightPowerEx
        rec[u'EmblemID'] = self.EmblemID
        rec[u'EmblemWord'] = fix_incomingText(self.EmblemWord)
        return rec
    def readRecord(self, rec):
@@ -27367,6 +27399,7 @@
        self.FightPower = rec.get(u'FightPower', 0)
        self.FightPowerEx = rec.get(u'FightPowerEx', 0)
        self.EmblemID = rec.get(u'EmblemID', 0)
        self.EmblemWord = fix_outgoingText(rec.get(u'EmblemWord', u''))
    def adoLoad(self, collection):
        '''使用KEY查找并读取'''
@@ -27532,6 +27565,7 @@
            FightPower = %s,
            FightPowerEx = %s,
            EmblemID = %s,
            EmblemWord = %s,
            ADOResult = %s,
            '''%(
                self.ID,
@@ -27548,12 +27582,13 @@
                self.FightPower,
                self.FightPowerEx,
                self.EmblemID,
                self.EmblemWord,
                self.ADOResult,
            )
        return output
    def dumpString(self):
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
                self.ID,
                self.Name,
                self.LeaderID,
@@ -27568,6 +27603,7 @@
                self.FightPower,
                self.FightPowerEx,
                self.EmblemID,
                self.EmblemWord,
            )
        return output
@@ -27577,6 +27613,12 @@
            self.Name = Str
        else:
            self.Name = Str[:33]
    def SetEmblemWord(self,Str):
        if len(Str)<=3:
            self.EmblemWord = Str
        else:
            self.EmblemWord = Str[:3]
            
# 家族成员表 #tagDBFamilyMem
@@ -27598,7 +27640,10 @@
        ('OffTime', ctypes.c_ulong),
        ('FmLV', ctypes.c_ubyte),
        ('ContribTotal', ctypes.c_ulong),
        ('ContribWeek', ctypes.c_ulong),
        ('ContribDay', ctypes.c_ulong),
        ('DonateCntTotal', ctypes.c_ulong),
        ('DonateCntDay', ctypes.c_ubyte),
        ('TitleID', ctypes.c_ulong),
        ('ADOResult', ctypes.c_ulong),
    ]
@@ -27634,7 +27679,10 @@
        self.OffTime, pos = CommFunc.ReadDWORD(buf, pos)
        self.FmLV, pos = CommFunc.ReadBYTE(buf, pos)
        self.ContribTotal, pos = CommFunc.ReadDWORD(buf, pos)
        self.ContribWeek, pos = CommFunc.ReadDWORD(buf, pos)
        self.ContribDay, pos = CommFunc.ReadDWORD(buf, pos)
        self.DonateCntTotal, pos = CommFunc.ReadDWORD(buf, pos)
        self.DonateCntDay, pos = CommFunc.ReadBYTE(buf, pos)
        self.TitleID, pos = CommFunc.ReadDWORD(buf, pos)
        return self.getLength()
@@ -27664,7 +27712,10 @@
        rec[u'OffTime'] = self.OffTime
        rec[u'FmLV'] = self.FmLV
        rec[u'ContribTotal'] = self.ContribTotal
        rec[u'ContribWeek'] = self.ContribWeek
        rec[u'ContribDay'] = self.ContribDay
        rec[u'DonateCntTotal'] = self.DonateCntTotal
        rec[u'DonateCntDay'] = self.DonateCntDay
        rec[u'TitleID'] = self.TitleID
        return rec
    def readRecord(self, rec):
@@ -27684,7 +27735,10 @@
        self.OffTime = rec.get(u'OffTime', 0)
        self.FmLV = rec.get(u'FmLV', 0)
        self.ContribTotal = rec.get(u'ContribTotal', 0)
        self.ContribWeek = rec.get(u'ContribWeek', 0)
        self.ContribDay = rec.get(u'ContribDay', 0)
        self.DonateCntTotal = rec.get(u'DonateCntTotal', 0)
        self.DonateCntDay = rec.get(u'DonateCntDay', 0)
        self.TitleID = rec.get(u'TitleID', 0)
    def adoLoad(self, collection):
        '''使用KEY查找并读取'''
@@ -27851,7 +27905,10 @@
            OffTime = %s,
            FmLV = %s,
            ContribTotal = %s,
            ContribWeek = %s,
            ContribDay = %s,
            DonateCntTotal = %s,
            DonateCntDay = %s,
            TitleID = %s,
            ADOResult = %s,
            '''%(
                self.PlayerID,
@@ -27869,13 +27926,16 @@
                self.OffTime,
                self.FmLV,
                self.ContribTotal,
                self.ContribWeek,
                self.ContribDay,
                self.DonateCntTotal,
                self.DonateCntDay,
                self.TitleID,
                self.ADOResult,
            )
        return output
    def dumpString(self):
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
        output = '''%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s\t%1s'''%(
                self.PlayerID,
                self.FamilyID,
                self.JoinTime,
@@ -27891,7 +27951,10 @@
                self.OffTime,
                self.FmLV,
                self.ContribTotal,
                self.ContribWeek,
                self.ContribDay,
                self.DonateCntTotal,
                self.DonateCntDay,
                self.TitleID,
            )
        return output