Add world.clear to the types

This commit is contained in:
EncodedVenom 2024-07-07 23:05:57 -04:00
parent 10922fd471
commit 886f00ca16
No known key found for this signature in database
GPG key ID: 55A4643DA68078EF

6
src/index.d.ts vendored
View file

@ -55,6 +55,12 @@ export class World {
*/
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.
* @param id Entity to be destroyed