Skip to content

Commit

Permalink
Engine - ECS: add docs to query TreeNode's
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Jul 22, 2024
1 parent 78a1550 commit c57702c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Engine/src/ECS/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ namespace Friflo.Engine.ECS;
/// <code>
/// foreach (var child in entity.ChildEntities)
/// </code>
/// To iterate all entities with child entities use <see cref="TreeNode"/> in a <c>Query()</c>.
/// </remarks>
public ChildEntities ChildEntities => new ChildEntities(this);

Expand Down
3 changes: 2 additions & 1 deletion Engine/src/ECS/Entity/ChildEntities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
namespace Friflo.Engine.ECS;

/// <summary>
/// Return the child entities of an <see cref="Entity"/>.
/// Return the child entities of an <see cref="Entity"/>.<br/>
/// To iterate all entities with child entities use <see cref="TreeNode"/> in a <c>Query()</c>.
/// </summary>
[DebuggerTypeProxy(typeof(ChildEntitiesDebugView))]
public readonly struct ChildEntities : IEnumerable<Entity>
Expand Down

0 comments on commit c57702c

Please sign in to comment.