Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
#if TEST_FRAMEWORK
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using JetBrains.Annotations;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Packages.Rider.Editor.UnitTesting
|
||||
{
|
||||
/// <summary>
|
||||
/// Is used by Rider Unity plugin by reflection
|
||||
/// </summary>
|
||||
[UsedImplicitly] // from Rider Unity plugin
|
||||
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>();
|
||||
|
||||
/// <summary>
|
||||
/// Is used by Rider Unity plugin by reflection
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
public void Clear()
|
||||
{
|
||||
events.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue