diff --git a/how_to/100_cleanup_traits.luau b/how_to/100_cleanup_traits.luau index 861e7e7..9c29ebe 100755 --- a/how_to/100_cleanup_traits.luau +++ b/how_to/100_cleanup_traits.luau @@ -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) diff --git a/how_to/111_signals.luau b/how_to/111_signals.luau new file mode 100755 index 0000000..e69de29 diff --git a/src/jecs.luau b/src/jecs.luau index 51cedbf..d739517 100755 --- a/src/jecs.luau +++ b/src/jecs.luau @@ -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: (self: World, id: Entity, relation: ecs_entity_t, 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: (self: World, id: Entity) -> (), --- Adds a component to the entity with no value