first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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);
}
}
}