hxp
2022-08-23 5fa02b1adbf1900358ab44a915cd9e841dcdf45f
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
@@ -6550,6 +6550,58 @@
#------------------------------------------------------
# A2 35 选择境界难度层级 #tagCMSelectRealmDifficulty
class  tagCMSelectRealmDifficulty(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("RealmDifficulty", c_ubyte),    #境界难度 = 100 + 所选境界等级,如境界13,则发113
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA2
        self.SubCmd = 0x35
        return
    def ReadData(self, stringData, _pos=0, _len=0):
        self.Clear()
        memmove(addressof(self), stringData[_pos:], self.GetLength())
        return _pos + self.GetLength()
    def Clear(self):
        self.Cmd = 0xA2
        self.SubCmd = 0x35
        self.RealmDifficulty = 0
        return
    def GetLength(self):
        return sizeof(tagCMSelectRealmDifficulty)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A2 35 选择境界难度层级 //tagCMSelectRealmDifficulty:
                                Cmd:%s,
                                SubCmd:%s,
                                RealmDifficulty:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.RealmDifficulty
                                )
        return DumpString
m_NAtagCMSelectRealmDifficulty=tagCMSelectRealmDifficulty()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSelectRealmDifficulty.Cmd,m_NAtagCMSelectRealmDifficulty.SubCmd))] = m_NAtagCMSelectRealmDifficulty
#------------------------------------------------------
# A2 30 设置聊天气泡框 #tagCMSetChatBubbleBox
class  tagCMSetChatBubbleBox(Structure):