Skip to content

Commit

Permalink
aaaand missed the actual files.
Browse files Browse the repository at this point in the history
  • Loading branch information
thygrrr committed Sep 25, 2024
1 parent 84657c7 commit 1bb2509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions fennecs.tests/ArchetypeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ public void Moved_Entity_Leaves_Archetype()
Assert.Equal(1, queryInt.Count);
}

// TODO: Is this a good location for this?
// Wasn't sure if it should be an "Archetype Test" or an integration test.

// Verifies fix to https://github.com/outfox/fennecs/issues/23
[Fact]
public void Remaining_Entity_Metas_Updated_Upon_Delete()
Expand Down
8 changes: 4 additions & 4 deletions fennecs/Archetype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ internal bool Matches(Mask mask)
/// <summary>
/// Remove one or more Entities and all associated Component data from the Archetype.
/// </summary>
/// <param name="entry"></param>
/// <param name="count"></param>
/// <param name="entry">index of the first Entity to remove</param>
/// <param name="count">number of Entities to remove</param>
internal void Delete(int entry, int count = 1)
{
Invalidate();
Expand All @@ -145,8 +145,8 @@ internal void Delete(int entry, int count = 1)
storage.Delete(entry, count);
}

// The code above may relocate Component data, so update Metas for all Entities following
// the removed section.
// The code above may relocate Component data, we must
// update Metas for all Entities following the removed section.
PatchMetas(entry, Math.Min(Count - entry, count));
}

Expand Down

0 comments on commit 1bb2509

Please sign in to comment.