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.

26 lines
576B

  1. #if UNITY_ECS
  2. using Unity.Entities;
  3. using Unity.Jobs;
  4. namespace Svelto.ECS.Extensions.Unity
  5. {
  6. public class SyncUECSToSveltoGroup : UnsortedJobifiedEnginesGroup<SyncUECSToSveltoEngine>
  7. {
  8. }
  9. public abstract class SyncUECSToSveltoEngine : SystemBase, IJobifiedEngine
  10. {
  11. public JobHandle Execute(JobHandle inputDeps)
  12. {
  13. Dependency = JobHandle.CombineDependencies(Dependency, inputDeps);
  14. Update();
  15. return Dependency;
  16. }
  17. public abstract string name { get; }
  18. }
  19. }
  20. #endif