Ukendio / jecs

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

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

Closed Mark-Marks closed 4 weeks ago

Mark-Marks commented 4 weeks 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 4 weeks ago

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