21 lines
522 B
C#
21 lines
522 B
C#
using System;
|
|
|
|
namespace LiteNetLib
|
|
{
|
|
/// <summary>
|
|
/// Interface to implement for your own logger
|
|
/// </summary>
|
|
public interface INetLogger
|
|
{
|
|
void WriteNet(ConsoleColor color, string str, params object[] args);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Static class for defining your own LiteNetLib logger instead of Console.WriteLine
|
|
/// or Debug.Log if compiled with UNITY flag
|
|
/// </summary>
|
|
public static class NetDebug
|
|
{
|
|
public static INetLogger Logger = null;
|
|
}
|
|
}
|