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

Method SetCustomBool

src/plugin/kernel/src/AFCEntity.cpp:835–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835bool 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
847bool AFCEntity::SetCustomInt32(const std::string& name, const int32_t value)
848{

Callers

nothing calls this directly

Calls 3

find_valueMethod · 0.45
GetTypeMethod · 0.45
SetBoolMethod · 0.45

Tested by

no test coverage detected