Files
Nitrox/NitroxModel-Subnautica/Logger/SubnauticaInGameLogger.cs
2025-07-06 00:23:46 +02:00

23 lines
646 B
C#

using NitroxModel.Logger;
namespace NitroxModel_Subnautica.Logger
{
/// <summary>
/// Log handler for logging and showing information to the player.
/// The log is also written to the log file.
/// </summary>
public class SubnauticaInGameLogger : InGameLogger
{
public void Log(object message) => Log(message?.ToString());
public void Log(string message)
{
if (string.IsNullOrEmpty(message))
{
return;
}
// Logs to the top-left of the screen using UWE code.
ErrorMessage.AddMessage(message);
}
}
}