From 5acb72fe88cbceb2ac12f3b8ed44157e844e97bd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Jan 2024 16:51:59 +0800 Subject: [PATCH] 1 --- server/gameserver/mt/Hero.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/gameserver/mt/Hero.h b/server/gameserver/mt/Hero.h index 84a41924..a5e5b3a6 100644 --- a/server/gameserver/mt/Hero.h +++ b/server/gameserver/mt/Hero.h @@ -6,6 +6,8 @@ namespace mt { + class BattleBasicAttribute; + struct HeroShotAnimation { int id = 0; @@ -53,9 +55,11 @@ namespace mt int RandDrop() const; const HeroShotAnimation* GetShotAnimi(int shotfire) const; float GetHeight() const { return height_; } + std::shared_ptr GetBasicMeta() { return basic_meta_; } private: float height_ = 0.0f; + std::shared_ptr basic_meta_ = nullptr; static void LoadHeroAndEquipShotData(); };