1
This commit is contained in:
29
Packages/Core/Diagnostics/IDiagnostics.cs
Normal file
29
Packages/Core/Diagnostics/IDiagnostics.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
namespace BITKit
|
||||
{
|
||||
public interface IDiagnostics
|
||||
{
|
||||
string GetName();
|
||||
object GetDiagnostics();
|
||||
}
|
||||
public static class Diagnostics
|
||||
{
|
||||
static List<IDiagnostics> List = new();
|
||||
public static Action<string> Output;
|
||||
public static void Register(IDiagnostics x)
|
||||
{
|
||||
List.Add(x);
|
||||
}
|
||||
public static void UnRegister(IDiagnostics x)
|
||||
{
|
||||
List.Remove(x);
|
||||
}
|
||||
[BITCommand]
|
||||
public static void Diagnostic()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user