Skip to content

Add hasComponent utility method to Entity Architecture#1

Open
raunakdeysarkar wants to merge 1 commit into
Tutorials-By-Kaupenjoe:mainfrom
raunakdeysarkar:main
Open

Add hasComponent utility method to Entity Architecture#1
raunakdeysarkar wants to merge 1 commit into
Tutorials-By-Kaupenjoe:mainfrom
raunakdeysarkar:main

Conversation

@raunakdeysarkar
Copy link
Copy Markdown

Hi! I noticed the Entity class had robust methods for adding and retrieving components, but lacked a simple, high-performance way to check if an entity possesses a component without fetching it entirely or handling optionals.

This PR adds a stream-based hasComponent method to Entity.java to make capability checks much cleaner and more efficient for developers using this educational framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant