| 898 | } |
| 899 | |
| 900 | bool AFCEntity::SetCustomString(const std::string& name, const std::string& value) |
| 901 | { |
| 902 | auto pData = custom_data_list_.find_value(name); |
| 903 | ARK_ASSERT_RET_VAL(pData != nullptr, false); |
| 904 | |
| 905 | ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_STRING, false); |
| 906 | |
| 907 | pData->SetString(value.c_str()); |
| 908 | |
| 909 | return true; |
| 910 | } |
| 911 | |
| 912 | bool AFCEntity::SetCustomWString(const std::string& name, const std::wstring& value) |
| 913 | { |
nothing calls this directly
no test coverage detected