| 874 | } |
| 875 | |
| 876 | bool AFCEntity::SetCustomFloat(const std::string& name, const float value) |
| 877 | { |
| 878 | auto pData = custom_data_list_.find_value(name); |
| 879 | ARK_ASSERT_RET_VAL(pData != nullptr, false); |
| 880 | |
| 881 | ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_FLOAT, false); |
| 882 | |
| 883 | pData->SetFloat(value); |
| 884 | |
| 885 | return true; |
| 886 | } |
| 887 | |
| 888 | bool AFCEntity::SetCustomDouble(const std::string& name, const double value) |
| 889 | { |
nothing calls this directly
no test coverage detected