Skip to content

Commit

Permalink
Engine - ECS: update add/insert/remove child methods
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Jul 21, 2024
1 parent 3f9f41f commit f4e3fcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Engine/src/ECS/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public bool RemoveTags(in Tags tags) {
/// See <a href="https://github.com/friflo/Friflo.Json.Fliox/wiki/Examples-~-General#child-entities">Example.</a>
/// </summary>
/// <remarks>
/// Executes in O(1).<br/>If its <see cref="TreeMembership"/> changes O(number of nodes in sub tree).<br/>
/// Executes in O(1).<br/>
/// The subtree structure of the added entity remains unchanged<br/>
/// </remarks>
/// <returns>
Expand All @@ -485,7 +485,6 @@ public int AddChild(Entity child) {
/// <remarks>
/// Executes in O(1) in case <paramref name="index"/> == <see cref="ChildCount"/>.<br/>
/// Otherwise, O(N). N = <see cref="ChildCount"/> - <paramref name="index"/><br/>
/// If its <see cref="TreeMembership"/> changes O(number of nodes in sub tree).<br/>
/// The subtree structure of the added entity remains unchanged<br/>
/// </remarks>
public void InsertChild(int index, Entity child) {
Expand All @@ -499,7 +498,6 @@ public void InsertChild(int index, Entity child) {
/// <summary>Remove the given child <paramref name="child"/> from the entity.</summary>
/// <remarks>
/// Executes in O(N) to search the entity. N = <see cref="ChildCount"/><br/>
/// If its <see cref="TreeMembership"/> changes (in-tree / floating) O(number of nodes in sub tree).<br/>
/// The subtree structure of the removed entity remains unchanged<br/>
/// </remarks>
public bool RemoveChild(Entity child) {
Expand Down

0 comments on commit f4e3fcf

Please sign in to comment.