Add luau type for clear

This commit is contained in:
EncodedVenom 2024-07-08 08:26:22 -04:00
parent aac660cc3d
commit eba21df762
No known key found for this signature in database
GPG key ID: 55A4643DA68078EF

View file

@ -940,6 +940,9 @@ export type WorldShim = typeof(setmetatable(
add: <T>(WorldShim, id: Entity, component: Entity<T>) -> (), add: <T>(WorldShim, id: Entity, component: Entity<T>) -> (),
--- Assigns a value to a component on the given entity --- Assigns a value to a component on the given entity
set: <T>(WorldShim, id: Entity, component: Entity<T>, data: T) -> (), set: <T>(WorldShim, id: Entity, component: Entity<T>, data: T) -> (),
-- Clears an entity from the world
clear: (WorldShim, id: Entity) -> (),
--- Removes a component from the given entity --- Removes a component from the given entity
remove: (WorldShim, id: Entity, component: Entity) -> (), remove: (WorldShim, id: Entity, component: Entity) -> (),
--- Retrieves the value of up to 4 components. These values may be nil. --- Retrieves the value of up to 4 components. These values may be nil.