AxibugEmuOnline_old/AxibugEmuOnline.Client/Assets/VirtualNes.Core/Debuger.cs
2024-07-30 18:53:36 +08:00

32 lines
747 B
C#

using System.Collections.Generic;
namespace VirtualNes.Core.Debug
{
public static class Debuger
{
public static List<string> logRecords = new List<string>();
private static IDebugerImpl s_debuger;
public static void Setup(IDebugerImpl debuger)
{
s_debuger = debuger;
}
public static void Log(string message)
{
s_debuger.Log(message);
logRecords.Add(message);
}
public static void LogError(string message)
{
s_debuger.LogError(message);
}
}
public interface IDebugerImpl
{
void Log(string message);
void LogError(string message);
}
}