diff --git a/types/ecs.d.ts b/types/ecs.d.ts index 24b6eb3..ea376a2 100644 --- a/types/ecs.d.ts +++ b/types/ecs.d.ts @@ -89,6 +89,8 @@ export function createWorld(worldId?: number): World; * @returns {Entity} the created entity */ export function createEntity(world: World): Entity; +export function getEntityId(world: any, entity: any): any; +export function getEntityById(world: any, entityId: any): any; /** * Adds a component to the entity * @param {World} world world where listener will be invoked @@ -191,6 +193,8 @@ export function cleanup(world: World): void; declare namespace _default { export { createWorld }; export { createEntity }; + export { getEntityId }; + export { getEntityById }; export { addComponentToEntity }; export { removeComponentFromEntity }; export { getEntities }; diff --git a/types/ecs.d.ts.map b/types/ecs.d.ts.map index 66a11f6..83017c8 100644 --- a/types/ecs.d.ts.map +++ b/types/ecs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ecs.d.ts","sourceRoot":"","sources":["../ecs.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;GAEG;AAEH;;GAEG;AAEH;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH;;GAEG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH,sCAHW,MAAM,GACJ,KAAK,CA+DjB;AAGD;;;;GAIG;AACH,oCAHW,KAAK,GACH,MAAM,CASlB;AAGD;;;;;;;GAOG;AACH,4CANW,KAAK,UACL,MAAM,iBACN,MAAM,kBACN,SAAS,GACP,IAAI,CA+BhB;AAGD;;;;;;;GAOG;AACF,iDANU,KAAK,UACL,MAAM,iBACN,MAAM,oBACN,OAAO,GACL,IAAI,CAiBhB;AAGD;;;;;;GAMG;AACF,oCALU,KAAK,UACL,MAAM,oBACN,OAAO,GACL,IAAI,CAmBhB;AAGD;;;;;;;;;;;;;GAaG;AACH,mCAZW,KAAK,kBACL,MAAM,EAAE,iBAKR,YAAY,sCAIV,MAAM,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