Docs
Preparing search index...
The search index is not available
Core Engine - v2.4.0b122
Core Engine
EcsEntityManager
Interface EcsEntityManager
Since
2.3.1b115
interface
EcsEntityManager
{
INVALID_ENTITY
:
number
;
TAG
:
Object
;
createEntity
(
)
:
number
;
detachEntity
(
entity
:
number
)
:
EcsAddComponents
;
extend
(
entity
:
number
,
components
:
EcsAddComponents
)
:
void
;
getComponent
(
entity
:
number
,
index
:
number
)
:
any
;
getComponents
(
entity
:
number
,
query
:
EcsQuery
)
:
any
[]
;
performQuery
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer0
)
:
void
;
performQuery
<
T1
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer1
<
T1
>
)
:
void
;
performQuery
<
T1
,
T2
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer2
<
T1
,
T2
>
)
:
void
;
performQuery
<
T1
,
T2
,
T3
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer3
<
T1
,
T2
,
T3
>
)
:
void
;
performQuery
<
T1
,
T2
,
T3
,
T4
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer4
<
T1
,
T2
,
T3
,
T4
>
)
:
void
;
performQuery
<
T1
,
T2
,
T3
,
T4
,
T5
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer5
<
T1
,
T2
,
T3
,
T4
,
T5
>
)
:
void
;
performQuery
<
T1
,
T2
,
T3
,
T4
,
T5
,
T6
>
(
query
:
EcsQuery
,
consumer
:
FixedQueryConsumer6
<
T1
,
T2
,
T3
,
T4
,
T5
,
T6
>
)
:
void
;
performVariadicQuery
(
query
:
EcsQuery
,
consumer
:
VariadicQueryConsumer
)
:
void
;
removeAllEntitiesWithComponents
(
query
:
EcsQuery
)
:
void
;
removeEntity
(
entity
:
number
)
:
void
;
shrink
(
entity
:
number
,
components
:
EcsRemoveComponents
)
:
void
;
}
Index
Methods
create
Entity
detach
Entity
extend
get
Component
get
Components
perform
Query
perform
Variadic
Query
remove
All
Entities
With
Components
remove
Entity
shrink
Properties
INVALID_
ENTITY
TAG
Methods
create
Entity
create
Entity
(
)
:
number
Returns
number
detach
Entity
detach
Entity
(
entity
)
:
EcsAddComponents
Parameters
entity
:
number
Returns
EcsAddComponents
extend
extend
(
entity
,
components
)
:
void
Parameters
entity
:
number
components
:
EcsAddComponents
Returns
void
get
Component
get
Component
(
entity
,
index
)
:
any
Parameters
entity
:
number
index
:
number
Returns
any
get
Components
get
Components
(
entity
,
query
)
:
any
[]
Parameters
entity
:
number
query
:
EcsQuery
Returns
any
[]
perform
Query
perform
Query
(
query
,
consumer
)
:
void
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer0
Returns
void
perform
Query
<
T1
>
(
query
,
consumer
)
:
void
Type Parameters
T1
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer1
<
T1
>
Returns
void
perform
Query
<
T1
,
T2
>
(
query
,
consumer
)
:
void
Type Parameters
T1
T2
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer2
<
T1
,
T2
>
Returns
void
perform
Query
<
T1
,
T2
,
T3
>
(
query
,
consumer
)
:
void
Type Parameters
T1
T2
T3
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer3
<
T1
,
T2
,
T3
>
Returns
void
perform
Query
<
T1
,
T2
,
T3
,
T4
>
(
query
,
consumer
)
:
void
Type Parameters
T1
T2
T3
T4
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer4
<
T1
,
T2
,
T3
,
T4
>
Returns
void
perform
Query
<
T1
,
T2
,
T3
,
T4
,
T5
>
(
query
,
consumer
)
:
void
Type Parameters
T1
T2
T3
T4
T5
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer5
<
T1
,
T2
,
T3
,
T4
,
T5
>
Returns
void
perform
Query
<
T1
,
T2
,
T3
,
T4
,
T5
,
T6
>
(
query
,
consumer
)
:
void
Type Parameters
T1
T2
T3
T4
T5
T6
Parameters
query
:
EcsQuery
consumer
:
FixedQueryConsumer6
<
T1
,
T2
,
T3
,
T4
,
T5
,
T6
>
Returns
void
perform
Variadic
Query
perform
Variadic
Query
(
query
,
consumer
)
:
void
Parameters
query
:
EcsQuery
consumer
:
VariadicQueryConsumer
Returns
void
remove
All
Entities
With
Components
remove
All
Entities
With
Components
(
query
)
:
void
Parameters
query
:
EcsQuery
Returns
void
remove
Entity
remove
Entity
(
entity
)
:
void
Parameters
entity
:
number
Returns
void
shrink
shrink
(
entity
,
components
)
:
void
Parameters
entity
:
number
components
:
EcsRemoveComponents
Returns
void
Properties
INVALID_
ENTITY
INVALID_
ENTITY
:
number
TAG
TAG
:
Object
Settings
Member Visibility
Inherited
Protected
Internal
Deprecated
Theme
OS
Light
Dark
On This Page
Methods
create
Entity
detach
Entity
extend
get
Component
get
Components
perform
Query
perform
Variadic
Query
remove
All
Entities
With
Components
remove
Entity
shrink
Properties
INVALID_
ENTITY
TAG
Docs
Core Engine - v2.4.0b122
Loading...
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and
TypeDoc
.
Since
2.3.1b115