| 11 | { |
| 12 | |
| 13 | inline std::vector<std::pair<std::string, std::string>> getAllKeyValuePairs(Entity* entity) |
| 14 | { |
| 15 | std::vector<std::pair<std::string, std::string>> existingKeyValues; |
| 16 | |
| 17 | entity->forEachKeyValue([&](const std::string& key, const std::string& value) |
| 18 | { |
| 19 | existingKeyValues.emplace_back(key, value); |
| 20 | }); |
| 21 | |
| 22 | return existingKeyValues; |
| 23 | } |
| 24 | |
| 25 | // Create an entity from a simple classname string |
| 26 | inline IEntityNodePtr createEntityByClassName(const std::string& className) |