sim-ecs - v0.6.5
Preparing search index...
IQueryDescriptor
Interface IQueryDescriptor<DESC, DATA>
interface
IQueryDescriptor
<
DESC
,
DATA
>
{
descriptor
:
Readonly
<
DESC
>
;
queryType
:
EQueryType
;
resultLength
:
number
;
execute
(
handler
:
(
data
:
DATA
)
=>
void
|
Promise
<
void
>
)
:
Promise
<
void
>
;
getFirst
()
:
undefined
|
DATA
;
iter
()
:
IterableIterator
<
DATA
>
;
matchesEntity
(
entity
:
Readonly
<
IEntity
>
)
:
boolean
;
sort
(
comparator
:
TComparator
<
DATA
>
)
:
IQueryDescriptor
<
DESC
,
DATA
>
;
toArray
()
:
DATA
[]
;
}
Type Parameters
DESC
DATA
Hierarchy (
View Summary
)
IQuery
<
DESC
,
DATA
>
IQueryDescriptor
IComponentsQueryDescriptor
IEntitiesQueryDescriptor
Implemented by
Query
Index
Properties
descriptor
query
Type
result
Length
Methods
execute
get
First
iter
matches
Entity
sort
to
Array
Properties
Readonly
descriptor
descriptor
:
Readonly
<
DESC
>
Readonly
query
Type
queryType
:
EQueryType
Readonly
result
Length
resultLength
:
number
Methods
execute
execute
(
handler
:
(
data
:
DATA
)
=>
void
|
Promise
<
void
>
)
:
Promise
<
void
>
Parameters
handler
:
(
data
:
DATA
)
=>
void
|
Promise
<
void
>
Returns
Promise
<
void
>
get
First
getFirst
()
:
undefined
|
DATA
Returns
undefined
|
DATA
iter
iter
()
:
IterableIterator
<
DATA
>
Returns
IterableIterator
<
DATA
>
matches
Entity
matchesEntity
(
entity
:
Readonly
<
IEntity
>
)
:
boolean
Parameters
entity
:
Readonly
<
IEntity
>
Returns
boolean
sort
sort
(
comparator
:
TComparator
<
DATA
>
)
:
IQueryDescriptor
<
DESC
,
DATA
>
Parameters
comparator
:
TComparator
<
DATA
>
Returns
IQueryDescriptor
<
DESC
,
DATA
>
to
Array
toArray
()
:
DATA
[]
Returns
DATA
[]
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
descriptor
query
Type
result
Length
Methods
execute
get
First
iter
matches
Entity
sort
to
Array
sim-ecs - v0.6.5
Loading...