| 58 | } |
| 59 | |
| 60 | void ScriptEntityNode::forEachKeyValue(EntityVisitor& visitor) { |
| 61 | Entity* entity = Node_getEntity(*this); |
| 62 | |
| 63 | if (entity) |
| 64 | { |
| 65 | entity->forEachKeyValue([&](const std::string& key, const std::string& value) |
| 66 | { |
| 67 | visitor.visit(key, value); |
| 68 | }); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // Checks if the given SceneNode structure is a BrushNode |
| 73 | bool ScriptEntityNode::isEntity(const ScriptSceneNode& node) { |
no test coverage detected