23 lines
535 B
C#
23 lines
535 B
C#
using Verse;
|
|
|
|
namespace ArachnaeSwarm
|
|
{
|
|
/// <summary>
|
|
/// Centralized debug logging controlled by mod settings.
|
|
/// Only shows when mod option is enabled, independent of DevMode.
|
|
/// </summary>
|
|
public static class ArachnaeLog
|
|
{
|
|
private static bool DebugEnabled =>
|
|
ArachnaeSwarmMod.settings?.enableDebugLogs ?? false;
|
|
|
|
public static void Debug(string message)
|
|
{
|
|
if (DebugEnabled)
|
|
{
|
|
Log.Message(message);
|
|
}
|
|
}
|
|
}
|
|
}
|