Skip to content

Commit 21fc324

Browse files
Revert this
1 parent 4519941 commit 21fc324

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Arch/Core/Chunk.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,18 @@ public void Copy(int index, object cmp)
470470
array.SetValue(cmp, index);
471471
}
472472

473+
/// <summary>
474+
/// Checks if a component is included in this <see cref="Chunk"/>.
475+
/// </summary>
476+
/// <param name="t">The type.</param>
477+
/// <returns>True if included, false otherwise.</returns>
478+
[Pure]
479+
public bool Has(ComponentType t)
480+
{
481+
var id = t.Id;
482+
return Has(id);
483+
}
484+
473485
/// <summary>
474486
/// Returns a component from an index within the <see cref="Chunk"/>.
475487
/// </summary>

0 commit comments

Comments
 (0)