Obtain entity attachments as a simple std::list
| 53 | |
| 54 | // Obtain entity attachments as a simple std::list |
| 55 | std::list<Entity::Attachment> getAttachments(const IEntityNodePtr& node) |
| 56 | { |
| 57 | std::list<Entity::Attachment> attachments; |
| 58 | if (node) |
| 59 | { |
| 60 | node->getEntity().forEachAttachment( |
| 61 | [&](const Entity::Attachment& a) { attachments.push_back(a); } |
| 62 | ); |
| 63 | } |
| 64 | return attachments; |
| 65 | } |
| 66 | |
| 67 | } |
| 68 |
no test coverage detected