using System; using System.Collections.Generic; namespace EcsRx.Components.Lookups { public interface IComponentTypeLookup { int[] AllComponentTypeIds { get; } IReadOnlyDictionary GetAllComponentTypes(); int GetComponentType() where T : IComponent; int GetComponentType(Type type); int[] GetComponentTypes(params Type[] types); Type[] GetComponentTypes(params int[] typeIds); bool IsComponentStruct(int componentTypeId); T CreateDefault() where T : IComponent, new(); } }