mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* 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
28 lines
743 B
C#
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();
|
|
}
|
|
|