Example of allowing multiple components of the same type to be queried.

This commit is contained in:
2023-04-07 07:46:41 -07:00
parent 4be44fbf10
commit 26efdfe314
5 changed files with 37 additions and 2 deletions

View File

@@ -79,10 +79,13 @@ namespace Dawn {
virtual ~SceneItemComponent();
};
template<class T>
T * _sceneForwardGetComponent(SceneItem *item) {
return item->getComponent<T>();
}
template<class T>
T * _sceneForwardGetComponents(SceneItem *item) {
return item->getComponents<T>();
}
}