6
2025-12-13 13:46:17 +03:00

20 lines
547 B
C#

using Content.Shared.Stacks;
namespace Content.Shared._NF.LoggingExtensions;
public static class LoggingExtensions
{
public static string GetExtraLogs(EntityManager entityManager, EntityUid entity)
{
// Get details from the stack component to track amount of things in the stack.
if (entityManager.TryGetComponent<StackComponent>(entity, out var stack))
{
return $"(StackCount: {stack.Count.ToString()})";
}
// Add more logging things here when needed.
return "";
}
}