mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-05 19:49:17 +00:00
Merge 7e7d930aef
into 6a8d991185
This commit is contained in:
commit
da8a21fd58
3 changed files with 4 additions and 2 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
5
jecs.d.ts
vendored
5
jecs.d.ts
vendored
|
@ -255,7 +255,10 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
|
||||||
* @returns The second entity (object) of the pair
|
* @returns The second entity (object) of the pair
|
||||||
*/
|
*/
|
||||||
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
||||||
|
export declare const component: <T>() => Entity<T>;
|
||||||
|
export declare const is_tag: <T>(world: World,id:Id<T>)=>boolean;
|
||||||
|
export declare const tag: <T>()=> Entity<T>;
|
||||||
|
export declare const meta: <T>(id: Entity, uid: Entity, value?: T) => void;
|
||||||
export declare const OnAdd: Entity<(e: Entity) => void>;
|
export declare const OnAdd: Entity<(e: Entity) => void>;
|
||||||
export declare const OnRemove: Entity<(e: Entity) => void>;
|
export declare const OnRemove: Entity<(e: Entity) => void>;
|
||||||
export declare const OnChange: Entity<(e: Entity, value: unknown) => void>;
|
export declare const OnChange: Entity<(e: Entity, value: unknown) => void>;
|
||||||
|
|
|
@ -2646,7 +2646,6 @@ return {
|
||||||
tag = (ECS_TAG :: any) :: <T>() -> Entity<T>,
|
tag = (ECS_TAG :: any) :: <T>() -> Entity<T>,
|
||||||
meta = (ECS_META :: any) :: <T>(id: Entity, id: Id<T>, value: T) -> Entity<T>,
|
meta = (ECS_META :: any) :: <T>(id: Entity, id: Id<T>, value: T) -> Entity<T>,
|
||||||
is_tag = (ecs_is_tag :: any) :: <T>(World, Id<T>) -> boolean,
|
is_tag = (ecs_is_tag :: any) :: <T>(World, Id<T>) -> boolean,
|
||||||
|
|
||||||
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
||||||
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
||||||
OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,
|
OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,
|
||||||
|
|
Loading…
Reference in a new issue