@adobe/data - v0.10.30
Preparing search index...
ecs
createArchetype
Function createArchetype
createArchetype
<
C
extends
Record
<
"id"
,
{
default
:
number
;
entity
:
true
;
maximum
:
2147483647
;
minimum
:
-2147483648
;
type
:
"integer"
;
}
,
>
,
>
(
components
:
C
,
id
:
number
,
entityLocationTable
:
EntityLocationTable
,
allocator
?:
MemoryAllocator
,
defaultFactories
?:
Record
<
string
,
()
=>
unknown
>
,
)
:
Archetype
<
Omit
<
{
[
K
in
string
|
number
|
symbol
]
:
ToType
<
C
[
K
]
,
5
>
}
,
"id"
>
,
>
Type Parameters
C
extends
Record
<
"id"
,
{
default
:
number
;
entity
:
true
;
maximum
:
2147483647
;
minimum
:
-2147483648
;
type
:
"integer"
;
}
,
>
Parameters
components
:
C
id
:
number
entityLocationTable
:
EntityLocationTable
Optional
allocator
:
MemoryAllocator
defaultFactories
:
Record
<
string
,
()
=>
unknown
>
= {}
Returns
Archetype
<
Omit
<
{
[
K
in
string
|
number
|
symbol
]
:
ToType
<
C
[
K
]
,
5
>
}
,
"id"
>
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@adobe/data - v0.10.30
Loading...