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

Method SetCustomFloat

src/plugin/kernel/src/AFCEntity.cpp:876–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876bool AFCEntity::SetCustomFloat(const std::string& name, const float value)
877{
878 auto pData = custom_data_list_.find_value(name);
879 ARK_ASSERT_RET_VAL(pData != nullptr, false);
880
881 ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_FLOAT, false);
882
883 pData->SetFloat(value);
884
885 return true;
886}
887
888bool AFCEntity::SetCustomDouble(const std::string& name, const double value)
889{

Callers

nothing calls this directly

Calls 3

find_valueMethod · 0.45
GetTypeMethod · 0.45
SetFloatMethod · 0.45

Tested by

no test coverage detected