1
This commit is contained in:
parent
c5485b58a3
commit
4816e94a3d
@ -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,
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user