Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
146 stars 26 forks source link

Expose `world:contains()` and `query:drain()` in types #110

Closed Mark-Marks closed 2 months ago

Mark-Marks commented 2 months ago

Brief Description of your Changes.

Impact of your Changes

Developers can now use another two methods without casting the objects to have them Doesn't alter performance, although alters behavior if someone expects world:contains() to return an entity (impossibly unlikely, especially since the method itself was never exposed in types)

Tests Performed

Run tests and implement as directed

Additional Comments

N/A

Mark-Marks commented 2 months ago

query:drain() wasn't exposed for some reason in the first commit, fixed now