MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getAllKeyValuePairs

Function getAllKeyValuePairs

test/algorithm/Entity.h:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13inline 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
26inline IEntityNodePtr createEntityByClassName(const std::string& className)

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

forEachKeyValueMethod · 0.45

Tested by 1

TEST_FFunction · 0.68