using Engine.Core; namespace Engine.Systems.Tween; public class BoxedPool(int initialCapacity = 1) : Pool>(() => new(), initialCapacity) where T : struct; public static class BoxedPoolExtensions { public static Boxed Get(this BoxedPool boxedPool, T value) where T : struct { Boxed boxed = boxedPool.Get(); boxed.Value = value; return boxed; } }