mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30:03 +00:00
Add drain to docs
This commit is contained in:
parent
d7bda01fa7
commit
f64158389a
1 changed files with 12 additions and 0 deletions
|
@ -4,6 +4,18 @@ A World contains entities which have components. The World is queryable and can
|
||||||
|
|
||||||
## Functions
|
## 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()
|
### with()
|
||||||
```luau
|
```luau
|
||||||
function query:with(
|
function query:with(
|
||||||
|
|
Loading…
Reference in a new issue