Add drain to docs

This commit is contained in:
Ukendio 2024-07-30 17:40:32 +02:00
parent d7bda01fa7
commit f64158389a

View file

@ -4,6 +4,18 @@ A World contains entities which have components. The World is queryable and can
## Functions
### drain()
```luau
function query:drain(): Query
```
This function will impede it from being reset when the query is being iterated.
### next()
```luau
function query:next(): Query
```
Get the next result in the query. Drain must have been called beforehand or otherwise it will error.
### with()
```luau
function query:with(