Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience search methods to SceneGraph #148

Merged
merged 3 commits into from
Apr 19, 2023
Merged

Conversation

JamesTKhan
Copy link
Owner

Adds new convenience methods to SceneGraph and GameObject for finding GameObjects in the Scene.

SceneGraph methods search the entire scene, by calling methods on the root GameObject. The methods on each GameObject only search within their own children. GameObject already implements Iterable and Depth First Search so all we needed were the search methods and some new tests.

@JamesTKhan JamesTKhan requested a review from Dgzt April 10, 2023 14:14
@JamesTKhan JamesTKhan added the enhancement New feature or request label Apr 10, 2023
@JamesTKhan JamesTKhan merged commit 371b8ef into master Apr 19, 2023
@JamesTKhan JamesTKhan deleted the scenegraph-search branch April 19, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants