mirror of
https://github.com/Ukendio/jecs.git
synced 2026-02-04 15:15:21 +00:00
Add docs for the preregister functions
This commit is contained in:
parent
f463cc9229
commit
3dab729df8
1 changed files with 2 additions and 1 deletions
|
|
@ -3882,9 +3882,10 @@ return {
|
|||
World = {
|
||||
new = world_new
|
||||
},
|
||||
--- Create a preregistered ID (see more how_to/011_preregistering_components.luau)
|
||||
component = (ECS_COMPONENT :: any) :: <T>() -> Entity<T>,
|
||||
tag = (ECS_TAG :: any) :: () -> Entity<nil>,
|
||||
--- Give the preregistered ID some data
|
||||
--- Give the preregistered ID some data (see more how_to/011_preregistering_components.luau)
|
||||
meta = (ECS_META :: any) :: <T, a>(id: Entity<T>, id: Component<a>, value: a?) -> Entity<T>,
|
||||
--- Check if the ID is a tag
|
||||
is_tag = (ecs_is_tag :: any) :: <T>(World, Component<T>) -> boolean,
|
||||
|
|
|
|||
Loading…
Reference in a new issue