MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AddCustomFloat

Method AddCustomFloat

src/plugin/kernel/src/AFCEntity.cpp:774–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774bool AFCEntity::AddCustomFloat(const std::string& name, const float value)
775{
776 ARK_ASSERT_RET_VAL(custom_data_list_.find(name) == custom_data_list_.end(), false);
777
778 AFIData* pData = ARK_NEW AFCData;
779 ARK_ASSERT_RET_VAL(pData != nullptr, false);
780
781 pData->SetFloat(value);
782 if (!custom_data_list_.insert(name, pData).second)
783 {
784 ARK_DELETE(pData);
785 return false;
786 }
787
788 return true;
789}
790
791bool AFCEntity::AddCustomDouble(const std::string& name, const double value)
792{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
SetFloatMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected