| 833 | } |
| 834 | |
| 835 | bool AFCEntity::SetCustomBool(const std::string& name, bool value) |
| 836 | { |
| 837 | auto pData = custom_data_list_.find_value(name); |
| 838 | ARK_ASSERT_RET_VAL(pData != nullptr, false); |
| 839 | |
| 840 | ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_BOOLEAN, false); |
| 841 | |
| 842 | pData->SetBool(value); |
| 843 | |
| 844 | return true; |
| 845 | } |
| 846 | |
| 847 | bool AFCEntity::SetCustomInt32(const std::string& name, const int32_t value) |
| 848 | { |
nothing calls this directly
no test coverage detected