18 lines
539 B
C#
18 lines
539 B
C#
namespace NeonSprawl.Server.Game.Gathering;
|
|
|
|
/// <summary>Canonical interactable id normalization for resource-node instance stores (NEO-61).</summary>
|
|
public static class ResourceNodeInstanceIds
|
|
{
|
|
/// <summary>Trim + lowercase; empty when input is null/whitespace.</summary>
|
|
public static string Normalize(string? interactableId)
|
|
{
|
|
var trimmed = interactableId?.Trim();
|
|
if (string.IsNullOrEmpty(trimmed))
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
return trimmed.ToLowerInvariant();
|
|
}
|
|
}
|