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.

EntitiesDB.Streams.cs 603B

1234567891011121314151617181920
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace Svelto.ECS
  4. {
  5. public partial class EntitiesDB
  6. {
  7. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  8. public void PublishEntityChange<T>(EGID egid) where T : unmanaged, IEntityComponent
  9. {
  10. _entityStream.PublishEntity(ref this.QueryEntity<T>(egid), egid);
  11. }
  12. #if later
  13. public ThreadSafeNativeEntityStream<T> GenerateThreadSafePublisher<T>() where T: unmanaged, IEntityComponent
  14. {
  15. return _entityStream.GenerateThreadSafePublisher<T>(this);
  16. }
  17. #endif
  18. }
  19. }