mirror of
https://github.com/Ukendio/jecs.git
synced 2025-07-15 02:39:17 +00:00
Use old interface
Some checks are pending
Some checks are pending
This commit is contained in:
parent
9ae32bcce8
commit
a6ae67250c
1 changed files with 3 additions and 6 deletions
|
@ -34,13 +34,10 @@ export type PatchedWorld = jecs.World & {
|
|||
|
||||
local function observers_new(
|
||||
world: PatchedWorld,
|
||||
description: {
|
||||
query: any,
|
||||
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
|
||||
}
|
||||
query: any,
|
||||
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
|
||||
)
|
||||
local query = description.query:cached()
|
||||
local callback = description.callback
|
||||
query = query:cached()
|
||||
|
||||
local archetypes = {}
|
||||
local terms = query.ids
|
||||
|
|
Loading…
Reference in a new issue