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

Method SetCustomInt64

src/plugin/kernel/src/AFCEntity.cpp:864–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864bool AFCEntity::SetCustomInt64(const std::string& name, const int64_t value)
865{
866 auto pData = custom_data_list_.find_value(name);
867 ARK_ASSERT_RET_VAL(pData != nullptr, false);
868
869 ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_INT64, false);
870
871 pData->SetInt64(value);
872
873 return true;
874}
875
876bool AFCEntity::SetCustomFloat(const std::string& name, const float value)
877{

Callers

nothing calls this directly

Calls 3

find_valueMethod · 0.45
GetTypeMethod · 0.45
SetInt64Method · 0.45

Tested by

no test coverage detected