Skip to content

Commit 6a97b19

Browse files
committed
Update Service.hpp
1 parent 3f4bb83 commit 6a97b19

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Foundation/Public/Aurora.Scene/Service.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ namespace Scene
105105
return Scene::Component<Type>(mWorld.component<Type>());
106106
}
107107

108+
// -=(Undocumented)=-
109+
template<typename First, typename Second>
110+
auto GetComponent()
111+
{
112+
const auto Handle = mWorld.entity(mWorld.pair<First, Second>());
113+
return Entity(Handle);
114+
}
115+
108116
// -=(Undocumented)=-
109117
template<typename Function>
110118
void GetArchetypes(Any<Function> Callback)

0 commit comments

Comments
 (0)