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 589B

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