From b32e34150c654ab3b0f66dc893d021790f0e5cfa Mon Sep 17 00:00:00 2001 From: Ullrich Praetz Date: Sat, 9 Dec 2023 08:11:32 +0100 Subject: [PATCH] Engine - ECS: removed EntityStore.GetChildNodeByIndex() --- Engine/src/ECS/Entity/Store/NodeTree.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/src/ECS/Entity/Store/NodeTree.cs b/Engine/src/ECS/Entity/Store/NodeTree.cs index 28dda235a7..a25b5846b5 100644 --- a/Engine/src/ECS/Entity/Store/NodeTree.cs +++ b/Engine/src/ECS/Entity/Store/NodeTree.cs @@ -138,10 +138,11 @@ internal bool RemoveChild (int parentId, int childId) return true; } + /* redundant: Entity.GetChildIndex() provide same feature but cleaner internal ref readonly EntityNode GetChildNodeByIndex(int parentId, int childIndex) { var childIds = nodes[parentId].childIds; return ref nodes[childIds[childIndex]]; - } + } */ /* redundant: Entity.ChildEntities[] provide same feature but cleaner internal Entity GetChildEntityByIndex(int parentId, int childIndex) {