mirror of
https://github.com/Ukendio/jecs.git
synced 2025-09-23 16:39:17 +00:00
Compare commits
1 commit
5bf0d80ca4
...
201cf6454c
Author | SHA1 | Date | |
---|---|---|---|
|
201cf6454c |
1 changed files with 1 additions and 11 deletions
12
jecs.d.ts
vendored
12
jecs.d.ts
vendored
|
@ -338,20 +338,10 @@ export type ComponentRecord = {
|
||||||
|
|
||||||
export function component_record(world: World, id: Id): ComponentRecord;
|
export function component_record(world: World, id: Id): ComponentRecord;
|
||||||
|
|
||||||
type TagToUndefined<T> = T extends TagDiscriminator ? undefined : T
|
|
||||||
|
|
||||||
export function bulk_insert<const C extends Id[]>(
|
export function bulk_insert<const C extends Id[]>(
|
||||||
world: World,
|
world: World,
|
||||||
entity: Entity,
|
entity: Entity,
|
||||||
ids: C,
|
ids: C,
|
||||||
values: { [K in keyof C]: TagToUndefined<InferComponent<C[K]>> },
|
values: InferComponents<C>,
|
||||||
): void;
|
): void;
|
||||||
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
|
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
|
||||||
|
|
||||||
export type EntityRecord<T extends Id[]> = {
|
|
||||||
archetype: Archetype<T>,
|
|
||||||
row: number,
|
|
||||||
dense: number,
|
|
||||||
};
|
|
||||||
|
|
||||||
export function record<T extends Id[] = []>(world: World, entity: Entity): EntityRecord<T>;
|
|
||||||
|
|
Loading…
Reference in a new issue