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

Prototype manager needs a cached way to get entity prototypes by component #5323

Open
DrSmugleaf opened this issue Jul 30, 2024 · 1 comment

Comments

@DrSmugleaf
Copy link
Member

A system subscribes to PrototypesReloadedEventArgs
It cares about all entity prototypes with a specific component (for example surgery)
It now has to loop all of them on initialize and skip if component not found, and get all changed ones when PrototypesReloadedEventArgs fires doing the same

This times however many systems do this pattern and it starts getting out of hand with how many systems are going to loop all entity prototypes

@metalgearsloth
Copy link
Contributor

Something something arch world + make prototypes entities

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

No branches or pull requests

2 participants