| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AB 11 开服活动奖励 #tagCMOpenServerCampaignAward
|
| | |
|
| | | class tagCMOpenServerCampaignAward(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("CampaignType", c_int), #活动类型
|
| | | ("AwardType", c_ubyte), #奖励类型,1-排行,2-目标
|
| | | ("AwardIndex", c_ubyte), #目标奖励索引,领取目标奖励时用,目标条件在目标奖励列表中索引
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAB
|
| | | self.SubCmd = 0x11
|
| | | 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 = 0xAB
|
| | | self.SubCmd = 0x11
|
| | | self.CampaignType = 0
|
| | | self.AwardType = 0
|
| | | self.AwardIndex = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCMOpenServerCampaignAward)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AB 11 开服活动奖励 //tagCMOpenServerCampaignAward:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | CampaignType:%d,
|
| | | AwardType:%d,
|
| | | AwardIndex:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.CampaignType,
|
| | | self.AwardType,
|
| | | self.AwardIndex
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCMOpenServerCampaignAward=tagCMOpenServerCampaignAward()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMOpenServerCampaignAward.Cmd,m_NAtagCMOpenServerCampaignAward.SubCmd))] = m_NAtagCMOpenServerCampaignAward
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AC 05 召集仙盟成员打boss #tagCGCallupFamilyMemberToBoss
|
| | |
|
| | | class tagCGCallupFamilyMemberToBoss(Structure):
|