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

Method AddCustomBool

src/plugin/kernel/src/AFCEntity.cpp:706–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706bool AFCEntity::AddCustomBool(const std::string& name, bool value)
707{
708 ARK_ASSERT_RET_VAL(custom_data_list_.find(name) == custom_data_list_.end(), false);
709
710 AFIData* pData = ARK_NEW AFCData;
711 ARK_ASSERT_RET_VAL(pData != nullptr, false);
712
713 pData->SetBool(value);
714 if (!custom_data_list_.insert(name, pData).second)
715 {
716 ARK_DELETE(pData);
717 return false;
718 }
719
720 return true;
721}
722
723bool AFCEntity::AddCustomInt32(const std::string& name, const int32_t value)
724{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
SetBoolMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected