feat: Replaces params array with params ReadOnlySpan (#2125)

This commit is contained in:
Kamron Batman 2025-02-13 21:19:02 -08:00 • committed by GitHub
parent 90059c5e74
commit 279b10dd0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 36 additions and 35 deletions

View file

@ -85,7 +85,7 @@ public abstract partial class BaseSpawner : Item, ISpawner
public BaseSpawner(
int amount, int minDelay, int maxDelay, int team, int homeRange,
params string[] spawnedNames
params ReadOnlySpan<string> spawnedNames
) : this(
amount,
TimeSpan.FromMinutes(minDelay),
@ -99,7 +99,7 @@ public abstract partial class BaseSpawner : Item, ISpawner
public BaseSpawner(
int amount, TimeSpan minDelay, TimeSpan maxDelay, int team, int homeRange,
params string[] spawnedNames
params ReadOnlySpan<string> spawnedNames
) : base(0x1f13)
{
_guid = Guid.NewGuid();