using System; using Unity.Collections; namespace GameCore.TinyECS { public interface IEntityDataStruct : IDisposable { AllocatorManager.AllocatorHandle Allocator { get; } void Add(); void Remove(int index); T GetData(int index) where T : unmanaged; ref T GetDataRef(int index) where T : unmanaged; } }