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

Loosen types for get #20

Merged
merged 325 commits into from
Apr 23, 2024
Merged

Loosen types for get #20

merged 325 commits into from
Apr 23, 2024

Conversation

Ukendio
Copy link
Member

@Ukendio Ukendio commented Apr 17, 2024

the overload for :get will always return nullable components and it needs to be passed a nominal entity type; but it wont matter whether components mismatch so dev experience should be better w/ it in most cases.

It is also pretty reflective of how ECS as a data structure works. random access are always not guaranteed to retrieve a specific component

evaera and others added 30 commits May 13, 2022 17:47
Store Entire Change Between queryChanged Calls
Fix comments on structure of `_archetypes` and `_entityArchetypes`
@Ukendio Ukendio merged commit 68007c5 into master Apr 23, 2024
6 checks passed
@Ukendio Ukendio deleted the get-types branch April 23, 2024 01:17
@Ukendio Ukendio restored the get-types branch April 23, 2024 01:17
@jackTabsCode jackTabsCode deleted the get-types branch October 5, 2024 04:59
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.