2022-01-12 10:06:03 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
namespace Packages.Rider.Editor.UnitTesting
|
|
|
|
{
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Is used by Rider Unity plugin by reflection
|
|
|
|
/// </summary>
|
|
|
|
[UsedImplicitly] // from Rider Unity plugin
|
2022-01-12 10:06:03 +03:00
|
|
|
public class CallbackData : ScriptableSingleton<CallbackData>
|
|
|
|
{
|
|
|
|
public bool isRider;
|
|
|
|
|
|
|
|
[UsedImplicitly] public static event EventHandler Changed = (sender, args) => { };
|
|
|
|
|
|
|
|
internal void RaiseChangedEvent()
|
|
|
|
{
|
|
|
|
Changed(null, EventArgs.Empty);
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<TestEvent> events = new List<TestEvent>();
|
|
|
|
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Is used by Rider Unity plugin by reflection
|
|
|
|
/// </summary>
|
2022-01-12 10:06:03 +03:00
|
|
|
[UsedImplicitly]
|
|
|
|
public void Clear()
|
|
|
|
{
|
|
|
|
events.Clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|