新版Mirror在2021年2月4日删除了Message,Logger和SafeQueue三个文件的内容,
新建Message.cs
namespace Telepathy
{
public struct Message
{
public readonly int connectionId;
public readonly EventType eventType;
public readonly byte[] data;
public Message(int connectionId, EventType eventType, byte[] data)
{
this.connectionId = connectionId;
this.eventType = eventType;
this.data = data;
}
}
}
新建Logger.cs
using System;
namespace Telepathy
{
public static class Logger
{
public static Action<string> Log = Console.WriteLine;
public static Action<string> LogWarning = Console.WriteLine;
public static Action<string> LogError = Console.Error.WriteLine;
}
}
新建SafeQueue.cs
using System.C