diff --git a/src/jecs.d.ts b/src/jecs.d.ts index b4b4bfc..da0f6c4 100755 --- a/src/jecs.d.ts +++ b/src/jecs.d.ts @@ -323,6 +323,9 @@ export function pair_second(world: World, p: Pair): Entity; export function ECS_PAIR_FIRST(pair: Pair): number; export function ECS_PAIR_SECOND(pair: Pair): number; +export function ECS_ID(entity: Entity): number; +export function ECS_GENERATION(entity: Entity): number; + type HookWithData = Entity<(e: Entity, id: Id, data: T) => void> & { readonly __nominal_HookWithData: unique symbol; };