MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / SetCustomDataString

Method SetCustomDataString

common/item_instance.cpp:835–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835void EQ::ItemInstance::SetCustomDataString(const std::string& str)
836{
837 auto components = Strings::Split(str, "^");
838 auto value_count = components.size() / 2;
839
840 for (auto i = 0; i < value_count; i++) {
841 auto identifier = components[i * 2];
842 auto value = components[(i * 2) + 1];
843
844 SetCustomData(identifier, value);
845 }
846}
847
848std::string EQ::ItemInstance::GetCustomData(const std::string& identifier) {
849 std::map<std::string, std::string>::const_iterator iter = m_custom_data.find(identifier);

Callers 5

GetCharSelInventoryMethod · 0.80
LoadItemsMethod · 0.80
GetSharedBankMethod · 0.80
GetInventoryMethod · 0.80
CreateItemMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected