1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-07 23:07:01 +09:00
osu-tools/PerformanceCalculatorGUI/HotReloadCallbackReceiver.cs
2022-04-20 20:15:01 +03:00

17 lines
575 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.
using System;
using JetBrains.Annotations;
namespace PerformanceCalculatorGUI
{
/// <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);
}
}