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.

25 lines
595B

  1. using System;
  2. using Svelto.ECS.Schedulers;
  3. namespace Svelto.ECS
  4. {
  5. //This scheduler shouldn't be used in production and it's meant to be used for Unit Tests only
  6. public class SimpleSubmissionEntityViewScheduler : IEntitySubmissionScheduler
  7. {
  8. public void SubmitEntities()
  9. {
  10. _onTick.Invoke();
  11. }
  12. EnginesRoot.EntitiesSubmitter IEntitySubmissionScheduler.onTick
  13. {
  14. set => _onTick = value;
  15. }
  16. EnginesRoot.EntitiesSubmitter _onTick;
  17. public void Dispose()
  18. {
  19. }
  20. }
  21. }