Files
osu-framework/osu.Framework/Testing/HotReloadCallbackReceiver.cs
2022-06-13 21:57:05 +09:00

20 lines
588 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using JetBrains.Annotations;
namespace osu.Framework.Testing
{
/// <summary>
/// Receives callbacks upon .NET Hot Reloads.
/// </summary>
internal static class HotReloadCallbackReceiver
{
public static event Action<Type[]> CompilationFinished;
public static void UpdateApplication([CanBeNull] Type[] updatedTypes) => CompilationFinished?.Invoke(updatedTypes);
}
}