Add ECS_ID and ECS_GENERATION types (#298)

This commit is contained in:
Christopher Buss 2026-01-29 23:14:02 +00:00 committed by GitHub
parent c9b3362a9c
commit 2c21c79510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
src/jecs.d.ts vendored
View file

@ -323,6 +323,9 @@ export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
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<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
readonly __nominal_HookWithData: unique symbol;
};