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.

SubmissionEngine.cs 566B

123456789101112131415161718192021222324
  1. #if UNITY_ECS
  2. using Svelto.Common;
  3. using Unity.Entities;
  4. using Unity.Jobs;
  5. namespace Svelto.ECS.Extensions.Unity
  6. {
  7. public abstract class SubmissionEngine : SystemBase, IJobifiedEngine
  8. {
  9. public JobHandle Execute(JobHandle inputDeps)
  10. {
  11. Dependency = JobHandle.CombineDependencies(Dependency, inputDeps);
  12. OnUpdate();
  13. return Dependency;
  14. }
  15. public EntityCommandBuffer ECB { get; internal set; }
  16. public string name => TypeToString.Name(this);
  17. }
  18. }
  19. #endif