mirror of
https://github.com/Ukendio/jecs.git
synced 2026-02-04 15:15:21 +00:00
Add ECS_ID and ECS_GENERATION types (#298)
This commit is contained in:
parent
c9b3362a9c
commit
2c21c79510
1 changed files with 3 additions and 0 deletions
3
src/jecs.d.ts
vendored
3
src/jecs.d.ts
vendored
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue