| 886 | } |
| 887 | |
| 888 | bool AFCEntity::SetCustomDouble(const std::string& name, const double value) |
| 889 | { |
| 890 | auto pData = custom_data_list_.find_value(name); |
| 891 | ARK_ASSERT_RET_VAL(pData != nullptr, false); |
| 892 | |
| 893 | ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_DOUBLE, false); |
| 894 | |
| 895 | pData->SetDouble(value); |
| 896 | |
| 897 | return true; |
| 898 | } |
| 899 | |
| 900 | bool AFCEntity::SetCustomString(const std::string& name, const std::string& value) |
| 901 | { |
nothing calls this directly
no test coverage detected