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

Method SetCustomString

src/plugin/kernel/src/AFCEntity.cpp:900–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900bool AFCEntity::SetCustomString(const std::string& name, const std::string& value)
901{
902 auto pData = custom_data_list_.find_value(name);
903 ARK_ASSERT_RET_VAL(pData != nullptr, false);
904
905 ARK_ASSERT_RET_VAL(pData->GetType() == ArkDataType::DT_STRING, false);
906
907 pData->SetString(value.c_str());
908
909 return true;
910}
911
912bool AFCEntity::SetCustomWString(const std::string& name, const std::wstring& value)
913{

Callers

nothing calls this directly

Calls 4

find_valueMethod · 0.45
GetTypeMethod · 0.45
SetStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected