8585 【港台】【BT】【长尾】【后端】竞技场(增加通知重置赛季状态)
| | |
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("IsReset", c_ubyte), #是否是重置的
|
| | | ("Score", c_int), #当前积分
|
| | | ("BattleCountToday", c_ubyte), #今日已挑战次数
|
| | | ("MatchRefreshCount", c_ubyte), #当前已刷新匹配列表次数,每次挑战后会重置
|
| | |
| | | def Clear(self):
|
| | | self.Cmd = 0xA3
|
| | | self.SubCmd = 0xC3
|
| | | self.IsReset = 0
|
| | | self.Score = 0
|
| | | self.BattleCountToday = 0
|
| | | self.MatchRefreshCount = 0
|
| | |
| | | DumpString = '''// A3 C3 竞技场玩家信息 //tagMCArenaPlayerInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | IsReset:%d,
|
| | | Score:%d,
|
| | | BattleCountToday:%d,
|
| | | MatchRefreshCount:%d,
|
| | |
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.IsReset,
|
| | | self.Score,
|
| | | self.BattleCountToday,
|
| | | self.MatchRefreshCount,
|
| | |
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("IsReset", c_ubyte), #是否是重置的
|
| | | ("Score", c_int), #当前积分
|
| | | ("BattleCountToday", c_ubyte), #今日已挑战次数
|
| | | ("MatchRefreshCount", c_ubyte), #当前已刷新匹配列表次数,每次挑战后会重置
|
| | |
| | | def Clear(self):
|
| | | self.Cmd = 0xA3
|
| | | self.SubCmd = 0xC3
|
| | | self.IsReset = 0
|
| | | self.Score = 0
|
| | | self.BattleCountToday = 0
|
| | | self.MatchRefreshCount = 0
|
| | |
| | | DumpString = '''// A3 C3 竞技场玩家信息 //tagMCArenaPlayerInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | IsReset:%d,
|
| | | Score:%d,
|
| | | BattleCountToday:%d,
|
| | | MatchRefreshCount:%d,
|
| | |
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.IsReset,
|
| | | self.Score,
|
| | | self.BattleCountToday,
|
| | | self.MatchRefreshCount,
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ArenaItemAddCount, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ArenaBattleCountDay, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ArenaMatchRefreshCount, 0)
|
| | | Sync_ArenaInfo(curPlayer)
|
| | | Sync_ArenaInfo(curPlayer, True)
|
| | | return
|
| | |
|
| | | def CheckArenaBattleCount(curPlayer):
|
| | |
| | |
|
| | | return
|
| | |
|
| | | def Sync_ArenaInfo(curPlayer):
|
| | | def Sync_ArenaInfo(curPlayer, isReset=False):
|
| | | clientPack = ChPyNetSendPack.tagMCArenaPlayerInfo()
|
| | | clientPack.IsReset = 1 if isReset else 0
|
| | | clientPack.Score = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaScore)
|
| | | clientPack.BattleCountToday = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaBattleCountDay)
|
| | | clientPack.MatchRefreshCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaMatchRefreshCount)
|