From 26958aff1b844a743a805b4f9075bee800b72a46 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 04 十一月 2025 14:35:37 +0800
Subject: [PATCH] 332 【主界面】座骑系统-服务端
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
index 5db30f2..4584fca 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
@@ -27,6 +27,7 @@
import PyGameData
import GameWorld
import ChConfig
+import ObjPool
import random
# 记录攻击类型
@@ -94,6 +95,7 @@
else:
return
+ billBoard.SortDelayDo()
orderList = [int(orderStr) for orderStr in billboradAwardDict.keys()]
orderList.sort()
GameWorld.Log(" 奖励名次列表: %s" % orderList)
@@ -322,19 +324,22 @@
def __SyncMatchList(curPlayer, matchIDList):
## 同步匹配列表
- clientPack = ChPyNetSendPack.tagSCArenaMatchList()
+ objPool = ObjPool.GetPoolMgr()
+ clientPack = objPool.acquire(ChPyNetSendPack.tagSCArenaMatchList)
clientPack.MatchList = []
for matchID in matchIDList:
viewCache = PlayerViewCache.FindViewCache(matchID)
- matchInfo = ChPyNetSendPack.tagSCArenaMatchInfo()
+ matchInfo = objPool.acquire(ChPyNetSendPack.tagSCArenaMatchInfo)
matchInfo.PlayerID = matchID
if viewCache:
matchInfo.PlayerName = viewCache.GetPlayerName()
matchInfo.RealmLV = viewCache.GetRealmLV()
+ matchInfo.LV = viewCache.GetLV()
matchInfo.Face = viewCache.GetFace()
matchInfo.FacePic = viewCache.GetFacePic()
matchInfo.FightPower = viewCache.GetFightPower()
matchInfo.FightPowerEx = viewCache.GetFightPowerEx()
+ matchInfo.TitleID = viewCache.GetTitleID()
else:
matchInfo.PlayerName = "p%s" % matchID
clientPack.MatchList.append(matchInfo)
@@ -343,7 +348,7 @@
return
def Sync_ArenaInfo(curPlayer):
- clientPack = ChPyNetSendPack.tagSCArenaPlayerInfo()
+ clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCArenaPlayerInfo)
clientPack.Score = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaScore)
NetPackCommon.SendFakePack(curPlayer, clientPack)
return
--
Gitblit v1.8.0