mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 19:29:18 +00:00
Compare commits
3 commits
182090b566
...
62d1e0d0c8
Author | SHA1 | Date | |
---|---|---|---|
|
62d1e0d0c8 | ||
|
b669196a98 | ||
|
96bed9bd7e |
1 changed files with 3 additions and 3 deletions
6
jecs.d.ts
vendored
6
jecs.d.ts
vendored
|
@ -244,12 +244,12 @@ export class World {
|
|||
|
||||
export function component<T>(): Entity<T>;
|
||||
|
||||
export function tag<T>(): Entity<T>;
|
||||
export function tag(): Tag;
|
||||
|
||||
// note: original types had id: Entity, id: Id<T>, which does not work with TS.
|
||||
export function meta<T>(e: Entity, id: Id<T>, value?: T): Entity<T>
|
||||
export function meta<T>(e: Entity, id: Id<T>, value?: T): Entity<T>;
|
||||
|
||||
export function is_tag<T>(world: World, id: Id<T>): boolean;
|
||||
export function is_tag(world: World, id: Id): boolean;
|
||||
|
||||
/**
|
||||
* Creates a composite key (pair)
|
||||
|
|
Loading…
Reference in a new issue