mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Add cleanup to types
This commit is contained in:
parent
270260cb70
commit
2e246e1e7a
2 changed files with 92 additions and 87 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -62,3 +62,7 @@ drafts/
|
|||
|
||||
.vitepress/cache
|
||||
.vitepress/dist
|
||||
|
||||
# Luau tools
|
||||
/tools
|
||||
profile.*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue