From 95f4c842c2ae0778af65f1e2f921b4cad8b0d152 Mon Sep 17 00:00:00 2001 From: sigureling <1678348940@qq.com> Date: Fri, 3 May 2024 13:10:26 +0800 Subject: [PATCH] fix: :bug: load energy and hp --- CAPI/python/PyAPI/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CAPI/python/PyAPI/utils.py b/CAPI/python/PyAPI/utils.py index 913fe8ac..805c8800 100644 --- a/CAPI/python/PyAPI/utils.py +++ b/CAPI/python/PyAPI/utils.py @@ -279,7 +279,11 @@ def Protobuf2THUAI7GameInfo( gameInfo = THUAI7.GameInfo() gameInfo.gameTime = allMsg.game_time gameInfo.redScore = allMsg.red_team_score + gameInfo.redEnergy = allMsg.red_team_energy + gameInfo.redHomeHp = allMsg.red_home_hp gameInfo.blueScore = allMsg.blue_team_score + gameInfo.blueEnergy = allMsg.blue_team_energy + gameInfo.blueHomeHp = allMsg.blue_home_hp return gameInfo