first commit
This commit is contained in:
22
NitroxModel-Subnautica/Logger/SubnauticaInGameLogger.cs
Normal file
22
NitroxModel-Subnautica/Logger/SubnauticaInGameLogger.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user