This commit is contained in:
aozhiwei 2024-01-11 13:55:05 +08:00
parent c5485b58a3
commit 4816e94a3d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#pragma once
A8_DECLARE_ENUM(NewHumanAttrType_e,
A8_DECLARE_ENUM(HumanAttrType_e,
kHAT_Begin = 0,
kHAT_vCurrnetHealth = 1,
kHAT_vHealth = 2,

View File

@ -52,7 +52,7 @@ bool AttrHelper::ParseAttr(std::shared_ptr<a8::XObject> xobj,
std::string AttrHelper::GetAttrName(int attr_id)
{
if (IsValidHumanAttr(attr_id)) {
std::string name = a8::GetEnumName<NewHumanAttrType_e>(attr_id);
std::string name = a8::GetEnumName<HumanAttrType_e>(attr_id);
a8::ReplaceString(name, "kHAT_", "");
return name;
} else if (IsValidHumanVirtualAttr(attr_id)) {