This commit is contained in:
vis2k 2021-03-02 15:56:33 +08:00
parent b663636a5b
commit b882653768

View File

@ -208,11 +208,6 @@ public override int GetMaxPacketSize(int channelId = Channels.DefaultReliable)
public override int GetMaxBatchSize(int channelId) => public override int GetMaxBatchSize(int channelId) =>
KcpConnection.UnreliableMaxMessageSize; KcpConnection.UnreliableMaxMessageSize;
public override string ToString()
{
return "KCP";
}
// server statistics // server statistics
public int GetAverageMaxSendRate() => public int GetAverageMaxSendRate() =>
server.connections.Count > 0 server.connections.Count > 0
@ -313,6 +308,8 @@ void OnLogStatistics()
Debug.Log(log); Debug.Log(log);
} }
} }
public override string ToString() => "KCP";
} }
} }
//#endif MIRROR <- commented out because MIRROR isn't defined on first import yet //#endif MIRROR <- commented out because MIRROR isn't defined on first import yet