|
669 | 669 | end
|
670 | 670 | end
|
671 | 671 |
|
672 |
| -local world_has: () -> boolean |
| 672 | +local world_has: (world: World, entityId: number, ...i53) -> boolean |
673 | 673 | do
|
674 | 674 | function world_has(world, entity_id, ...)
|
675 | 675 | local id = entity_id
|
@@ -1015,11 +1015,13 @@ export type WorldShim = typeof(setmetatable(
|
1015 | 1015 | --- Removes a component from the given entity
|
1016 | 1016 | remove: (WorldShim, id: Entity, component: Entity) -> (),
|
1017 | 1017 | --- Retrieves the value of up to 4 components. These values may be nil.
|
1018 |
| - get: (<A>(WorldShim, id: any, Entity<A>) -> A) |
| 1018 | + get: (<A>(WorldShim, id: Entity, Entity<A>) -> A) |
1019 | 1019 | & (<A, B>(WorldShim, id: Entity, Entity<A>, Entity<B>) -> (A, B))
|
1020 | 1020 | & (<A, B, C>(WorldShim, id: Entity, Entity<A>, Entity<B>, Entity<C>) -> (A, B, C))
|
1021 | 1021 | & <A, B, C, D>(WorldShim, id: Entity, Entity<A>, Entity<B>, Entity<C>, Entity<D>) -> (A, B, C, D),
|
1022 | 1022 |
|
| 1023 | + has: (WorldShim, Entity, ...Entity) -> boolean, |
| 1024 | + |
1023 | 1025 | --- Searches the world for entities that match a given query
|
1024 | 1026 | query: (<A>(WorldShim, Entity<A>) -> QueryShim<A>)
|
1025 | 1027 | & (<A, B>(WorldShim, Entity<A>, Entity<B>) -> QueryShim<A, B>)
|
|
0 commit comments