No Description
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.

CallbackData.cs 848B

12345678910111213141516171819202122232425262728293031323334
  1. #if TEST_FRAMEWORK
  2. using System;
  3. using System.Collections.Generic;
  4. using JetBrains.Annotations;
  5. using UnityEditor;
  6. namespace Packages.Rider.Editor.UnitTesting
  7. {
  8. internal class CallbackData : ScriptableSingleton<CallbackData>
  9. {
  10. /// <summary>
  11. /// identifies that tests were started from Rider
  12. /// </summary>
  13. public bool isRider;
  14. [UsedImplicitly] // Is used by Rider Unity plugin by reflection
  15. public static event EventHandler Changed = (sender, args) => { };
  16. internal void RaiseChangedEvent()
  17. {
  18. Changed(null, EventArgs.Empty);
  19. }
  20. [UsedImplicitly] // Is used by Rider Unity plugin by reflection
  21. public List<TestEvent> events = new List<TestEvent>();
  22. [UsedImplicitly] // Is used by Rider Unity plugin by reflection
  23. public void Clear()
  24. {
  25. events.Clear();
  26. }
  27. }
  28. }
  29. #endif