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

Function getAttachments

test/Entity.cpp:55–65  ·  view source on GitHub ↗

Obtain entity attachments as a simple std::list

Source from the content-addressed store, hash-verified

53
54// Obtain entity attachments as a simple std::list
55std::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

Callers 1

TEST_FFunction · 0.85

Calls 3

forEachAttachmentMethod · 0.45
getEntityMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected