mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30:03 +00:00
Add world.clear to the types
This commit is contained in:
parent
10922fd471
commit
886f00ca16
1 changed files with 6 additions and 0 deletions
6
src/index.d.ts
vendored
6
src/index.d.ts
vendored
|
@ -55,6 +55,12 @@ export class World {
|
||||||
*/
|
*/
|
||||||
target(id: Entity, relation: Entity): Entity | undefined;
|
target(id: Entity, relation: Entity): Entity | undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears an entity from the world.
|
||||||
|
* @praram id Entity to be cleared
|
||||||
|
*/
|
||||||
|
clear(id: Entity): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes an entity and all its related components and relationships.
|
* Deletes an entity and all its related components and relationships.
|
||||||
* @param id Entity to be destroyed
|
* @param id Entity to be destroyed
|
||||||
|
|
Loading…
Reference in a new issue