Skip to content

Commit

Permalink
spans bad
Browse files Browse the repository at this point in the history
  • Loading branch information
MilonPL committed Feb 4, 2025
1 parent bebc895 commit e5cbd34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Robust.Shared/GameObjects/EntityManager.Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ public bool CopyComponent<T>(EntityUid source, EntityUid target, [NotNullWhen(tr
}

/// <inheritdoc/>
public bool CopyComponents(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params ReadOnlySpan<Type> types)
public bool CopyComponents(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params Type[] types)
{
if (!MetaQuery.Resolve(target, ref metadataTarget, false))
throw new ArgumentException($"Entity {target} is not valid.", nameof(target));
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/GameObjects/EntitySystem.Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ protected bool CopyComp<T>(EntityUid source, EntityUid target, [NotNullWhen(true

/// <inheritdoc cref="IEntityManager.CopyComponents"/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected bool CopyComps(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params ReadOnlySpan<Type> types)
protected bool CopyComps(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params Type[] types)
{
return EntityManager.CopyComponents(source, target, metadataTarget, types);
}
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/GameObjects/IEntityManager.Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public partial interface IEntityManager
/// <param name="metadataTarget">Optional metadata of the target entity</param>
/// <param name="types">Array of component types to copy</param>
/// <returns>Whether all components were successfully copied</returns>
bool CopyComponents(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params ReadOnlySpan<Type> types);
bool CopyComponents(EntityUid source, EntityUid target, MetaDataComponent? metadataTarget = null, params Type[] types);

/// <summary>
/// Returns a cached struct enumerator with the specified component.
Expand Down

0 comments on commit e5cbd34

Please sign in to comment.