From eba21df7623f5bde453f851f261fabc06e33e99f Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Mon, 8 Jul 2024 08:26:22 -0400 Subject: [PATCH] Add luau type for clear --- src/init.luau | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/init.luau b/src/init.luau index 8356b9b..6cbedb3 100644 --- a/src/init.luau +++ b/src/init.luau @@ -940,6 +940,9 @@ export type WorldShim = typeof(setmetatable( add: (WorldShim, id: Entity, component: Entity) -> (), --- Assigns a value to a component on the given entity set: (WorldShim, id: Entity, component: Entity, data: T) -> (), + + -- Clears an entity from the world + clear: (WorldShim, id: Entity) -> (), --- Removes a component from the given entity remove: (WorldShim, id: Entity, component: Entity) -> (), --- Retrieves the value of up to 4 components. These values may be nil.