using System.Collections.Generic; namespace FluidHTN.Factory { public interface IFactory { T[] CreateArray(int length); bool FreeArray(ref T[] array); Queue CreateQueue(); bool FreeQueue(ref Queue queue); List CreateList(); bool FreeList(ref List list); T Create() where T : new(); bool Free(ref T obj); } }