mirror of
https://github.com/Ukendio/jecs.git
synced 2026-02-04 15:15:21 +00:00
Fix docs
This commit is contained in:
parent
18b72149c7
commit
197a57b28b
3 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ print(world:has(e1, T1))
|
|||
Cascading deletion, dangerous.
|
||||
]]
|
||||
|
||||
world:add(T2, pair(jecs.OnDelete, jecs.Remove))
|
||||
world:add(T2, pair(jecs.OnDelete, jecs.Delete))
|
||||
|
||||
local e2 = world:entity()
|
||||
world:add(e2, T2)
|
||||
|
|
|
|||
0
how_to/111_signals.luau
Executable file
0
how_to/111_signals.luau
Executable file
|
|
@ -247,7 +247,7 @@ export type World = {
|
|||
--- Gets the target of an relationship. For example, when a user calls
|
||||
--- `world:target(id, ChildOf(parent), 0)`, you will obtain the parent entity.
|
||||
target: <T, a>(self: World, id: Entity<T>, relation: ecs_entity_t<Component>, index: number?) -> Entity?,
|
||||
--- Deletes an entity and all it's related components and relationships.
|
||||
--- Deletes an entity and all its related components and relationships.
|
||||
delete: <T>(self: World, id: Entity<T>) -> (),
|
||||
|
||||
--- Adds a component to the entity with no value
|
||||
|
|
|
|||
Loading…
Reference in a new issue