Files
h-school/src/HSchool.Content/IContentLog.cs
T

18 lines
443 B
C#

namespace HSchool.Content;
/// <summary>Warnings from the loader — last-wins collisions, not fatal errors.</summary>
public interface IContentLog
{
void Warning(string message);
}
/// <summary>Drops warnings. Tests that do not care about collisions use this.</summary>
public sealed class NullContentLog : IContentLog
{
public static NullContentLog Instance { get; } = new();
public void Warning(string message)
{
}
}