mirror of
https://github.com/Ukendio/jecs.git
synced 2025-09-23 00:29:18 +00:00
Add record typings
This commit is contained in:
parent
2d9432ab7a
commit
5ecc0b2657
1 changed files with 8 additions and 0 deletions
8
jecs.d.ts
vendored
8
jecs.d.ts
vendored
|
@ -345,3 +345,11 @@ export function bulk_insert<const C extends Id[]>(
|
|||
values: InferComponents<C>,
|
||||
): void;
|
||||
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
|
||||
|
||||
export type EntityRecord<E extends Entity> = {
|
||||
archetype: Archetype<[E]>,
|
||||
row: number,
|
||||
dense: number,
|
||||
};
|
||||
|
||||
export function record<E extends Entity>(world: World, entity: E): EntityRecord<E>;
|
Loading…
Reference in a new issue