Update Project

This commit is contained in:
2026-03-20 13:04:43 +02:00
parent 9b587e6cba
commit beae2dea89
2295 changed files with 251259 additions and 33 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();
}
}
}