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.

22 lines
754B

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