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.

23 lines
799B

  1. using System.Runtime.CompilerServices;
  2. using Svelto.ECS.Internal;
  3. namespace Svelto.ECS
  4. {
  5. public partial class EnginesRoot
  6. {
  7. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  8. internal Consumer<T> GenerateConsumer<T>(string name, uint capacity) where T : unmanaged, _IInternalEntityComponent
  9. {
  10. return _entityStreams.GenerateConsumer<T>(name, capacity);
  11. }
  12. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  13. internal Consumer<T> GenerateConsumer<T>(ExclusiveGroupStruct group, string name, uint capacity)
  14. where T : unmanaged, _IInternalEntityComponent
  15. {
  16. return _entityStreams.GenerateConsumer<T>(@group, name, capacity);
  17. }
  18. internal readonly EntitiesStreams _entityStreams;
  19. }
  20. }