Example of allowing multiple components of the same type to be queried.
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user