| 833 | } |
| 834 | |
| 835 | void 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 | |
| 848 | std::string EQ::ItemInstance::GetCustomData(const std::string& identifier) { |
| 849 | std::map<std::string, std::string>::const_iterator iter = m_custom_data.find(identifier); |
no test coverage detected