1.7.7-alpha-associated-accounts

- Added possibility to view player associated account (by ip)
This commit is contained in:
Dawid Bepierszcz 2025-05-21 03:08:02 +02:00
parent d34ca64970
commit d75a092047
20 changed files with 105 additions and 17 deletions

View file

@ -0,0 +1,12 @@
namespace CS2_SimpleAdmin;
public static class EnumerableExtensions
{
public static IEnumerable<IEnumerable<T>> ChunkBy<T>(this IEnumerable<T> source, int chunkSize)
{
return source
.Select((x, i) => new { Index = i, Value = x })
.GroupBy(x => x.Index / chunkSize)
.Select(x => x.Select(v => v.Value));
}
}