Files
RobustToolbox/Robust.Shared/Utility/IReloadManager.cs
Milon 3bbe0e7f44 ftl hot reloading (#5874)
* sloth is so going to kill me

* the voices in my head told me to do this

* Register ILocalizationManagerInternal on client

* Avoid breaking change

* Cleanup

* Release notes
2025-04-26 22:38:56 +10:00

28 lines
743 B
C#

using System;
namespace Robust.Shared.Utility;
/// <summary>
/// Handles hot-reloading modified resource files such as prototypes or shaders.
/// </summary>
internal interface IReloadManager
{
/// <summary>
/// File that has been modified.
/// </summary>
public event Action<ResPath>? OnChanged;
/// <summary>
/// Registers the specified directory and specified file extension to subscribe to.
/// </summary>
internal void Register(string directory, string filter);
/// <summary>
/// Registers the specified directory as a <see cref="ResPath"/> and specified file extension to subscribe to.
/// </summary>
internal void Register(ResPath directory, string filter);
void Initialize();
}