From 8c1ef4fe1afd54edd133fa16ae1e4ee5d749951d Mon Sep 17 00:00:00 2001 From: Ullrich Praetz Date: Wed, 31 Jul 2024 15:49:30 +0200 Subject: [PATCH] ECS - update EntityData docs --- src/ECS/Entity.cs | 2 +- src/ECS/Entity/EntityData.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ECS/Entity.cs b/src/ECS/Entity.cs index febf3dc1..b1bb51dc 100644 --- a/src/ECS/Entity.cs +++ b/src/ECS/Entity.cs @@ -253,7 +253,7 @@ public ref readonly Tags Tags { get { // ------------------------------------ component properties ---------------------------------- #region component - properties - /// Returns the entity data used to optimize read / write access of entity components. + /// Returns the entity data used to optimize access of entity components and tags. [Browse(Never)] public EntityData Data { get { ref var node = ref store.nodes[Id]; if (node.archetype != null && Revision == node.revision) { diff --git a/src/ECS/Entity/EntityData.cs b/src/ECS/Entity/EntityData.cs index cfce03c5..28514402 100644 --- a/src/ECS/Entity/EntityData.cs +++ b/src/ECS/Entity/EntityData.cs @@ -10,7 +10,7 @@ namespace Friflo.Engine.ECS; /// -/// An is used to optimize read / write access of entity components.br/> +/// An is used to optimize access of entity components and tags.
/// An instance can be returned by . ///
/// @@ -40,6 +40,8 @@ public readonly ref struct EntityData #region fields [Browse(Never)] private readonly StructHeap[] heapMap; [Browse(Never)] private readonly Archetype archetype; + + /// id public readonly int Id; [Browse(Never)] private readonly int compIndex; #endregion