mirror of
https://github.com/Ukendio/jecs.git
synced 2025-09-23 08:39:16 +00:00
Make World.contains a number->Entity typeguard
This commit is contained in:
parent
7e1f43aff5
commit
c4cc68d6be
1 changed files with 6 additions and 0 deletions
6
jecs.d.ts
vendored
6
jecs.d.ts
vendored
|
@ -236,6 +236,12 @@ export class World {
|
|||
*/
|
||||
contains(entity: Entity): boolean;
|
||||
|
||||
/**
|
||||
* Checks if an entity exists in the world.
|
||||
* @param entity The entity to verify.
|
||||
*/
|
||||
contains(entity: number): entity is Entity;
|
||||
|
||||
/**
|
||||
* Checks if an entity with the given ID is currently alive, ignoring its generation.
|
||||
* @param entity The entity to verify.
|
||||
|
|
Loading…
Reference in a new issue