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

Method SetCustomDouble

src/plugin/kernel/src/AFCEntity.cpp:888–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888bool AFCEntity::SetCustomDouble(const std::string& name, const double value)
889{
890 auto pData = custom_data_list_.find_value(name);
891 ARK_ASSERT_RET_VAL(pData != nullptr, false);
892
893 ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_DOUBLE, false);
894
895 pData->SetDouble(value);
896
897 return true;
898}
899
900bool AFCEntity::SetCustomString(const std::string& name, const std::string& value)
901{

Callers

nothing calls this directly

Calls 3

find_valueMethod · 0.45
GetTypeMethod · 0.45
SetDoubleMethod · 0.45

Tested by

no test coverage detected