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

Function findKeyValue

test/Entity.cpp:1128–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126};
1127
1128inline EntityKeyValue* findKeyValue(Entity* entity, const std::string& keyToFind)
1129{
1130 EntityKeyValue* keyValue = nullptr;
1131
1132 entity->forEachEntityKeyValue([&](const std::string& key, EntityKeyValue& value)
1133 {
1134 if (!keyValue && key == keyToFind)
1135 {
1136 keyValue = &value;
1137 }
1138 });
1139
1140 return keyValue;
1141}
1142
1143inline void expectKeyValuesAreEquivalent(const std::vector<std::pair<std::string, std::string>>& stack1,
1144 const std::vector<std::pair<std::string, std::string>>& stack2)

Callers 1

TEST_FFunction · 0.85

Calls 1

forEachEntityKeyValueMethod · 0.80

Tested by

no test coverage detected