Add cleanup to types

This commit is contained in:
Ukendio 2024-10-09 00:54:22 +02:00
parent 270260cb70
commit 2e246e1e7a
2 changed files with 92 additions and 87 deletions

4
.gitignore vendored
View file

@ -62,3 +62,7 @@ drafts/
.vitepress/cache
.vitepress/dist
# Luau tools
/tools
profile.*

View file

@ -1711,6 +1711,7 @@ export type World = {
--- Assigns a value to a component on the given entity
set: <T>(self: World, id: Entity, component: Id<T>, data: T) -> (),
cleanup: (self: World) -> (),
-- Clears an entity from the world
clear: (self: World, id: Entity) -> (),
--- Removes a component from the given entity