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

entities() E2 function #3257

Merged
merged 1 commit into from
Feb 14, 2025
Merged

entities() E2 function #3257

merged 1 commit into from
Feb 14, 2025

Conversation

Astralcircle
Copy link
Contributor

@Astralcircle Astralcircle commented Feb 2, 2025

Adds a function to get an array of all entities on the map. Of course we have findByClass("*"), but it works many times slower and is not an obvious way to get all entities.

Also can use ents.Iterator() to create a copy of the table for ~3x speedup, but this can be unstable.

@thegrb93 thegrb93 merged commit dbed3cf into wiremod:master Feb 14, 2025
1 check passed
@Astralcircle Astralcircle deleted the entities branch February 16, 2025 12:27
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.

2 participants