| 862 | } |
| 863 | |
| 864 | bool AFCEntity::SetCustomInt64(const std::string& name, const int64_t value) |
| 865 | { |
| 866 | auto pData = custom_data_list_.find_value(name); |
| 867 | ARK_ASSERT_RET_VAL(pData != nullptr, false); |
| 868 | |
| 869 | ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_INT64, false); |
| 870 | |
| 871 | pData->SetInt64(value); |
| 872 | |
| 873 | return true; |
| 874 | } |
| 875 | |
| 876 | bool AFCEntity::SetCustomFloat(const std::string& name, const float value) |
| 877 | { |
nothing calls this directly
no test coverage detected