public static readonly Dictionary<Type, List<Entity>> EntitiesByType = new();public static List<T> GetEntitiesByType<T>() where T : Entity{ if(EntitiesByType.TryGetValue(typeof(T), out var entities)) { return entities; } return new();}