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.

29 lines
688B

  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 interface IUpdateBeforeSubmission
  8. {
  9. JobHandle BeforeSubmissionUpdate(JobHandle jobHandle);
  10. string name { get; }
  11. }
  12. public interface IUpdateAfterSubmission
  13. {
  14. JobHandle AfterSubmissionUpdate(JobHandle jobHandle);
  15. string name { get; }
  16. }
  17. public abstract class SubmissionEngine : SystemBase, IEngine
  18. {
  19. public EntityCommandBuffer ECB { get; internal set; }
  20. protected sealed override void OnUpdate() {}
  21. public string name => TypeToString.Name(this);
  22. }
  23. }
  24. #endif