mirror of
https://github.com/Ukendio/jecs.git
synced 2025-07-15 10:49: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(
|
local function observers_new(
|
||||||
world: PatchedWorld,
|
world: PatchedWorld,
|
||||||
description: {
|
query: any,
|
||||||
query: any,
|
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
|
||||||
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
local query = description.query:cached()
|
query = query:cached()
|
||||||
local callback = description.callback
|
|
||||||
|
|
||||||
local archetypes = {}
|
local archetypes = {}
|
||||||
local terms = query.ids
|
local terms = query.ids
|
||||||
|
|
Loading…
Reference in a new issue