Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using ModestTree;
namespace Zenject
{
public class HashSetPool<T> : StaticMemoryPool<HashSet<T>>
{
static HashSetPool<T> _instance = new HashSetPool<T>();
public HashSetPool()
{
OnSpawnMethod = OnSpawned;
OnDespawnedMethod = OnDespawned;
}
public static HashSetPool<T> Instance
{
get { return _instance; }
}
static void OnSpawned(HashSet<T> items)
{
Assert.That(items.IsEmpty());
}
static void OnDespawned(HashSet<T> items)
{
items.Clear();
}
}
}