Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
406B

  1. using Svelto.ECS.Internal;
  2. namespace Svelto.ECS
  3. {
  4. static class TypeSafeDictionaryFactory<T> where T : struct, IEntityComponent
  5. {
  6. public static ITypeSafeDictionary Create()
  7. {
  8. return new TypeSafeDictionary<T>(1);
  9. }
  10. public static ITypeSafeDictionary Create(uint size)
  11. {
  12. return new TypeSafeDictionary<T>(size);
  13. }
  14. }
  15. }