mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Removed NetworkClient.m_MsgReader because it wasn't used anymore
This commit is contained in:
parent
96f48fdbba
commit
a4cce5b3c5
@ -33,7 +33,6 @@ public class NetworkClient
|
|||||||
protected NetworkConnection m_Connection;
|
protected NetworkConnection m_Connection;
|
||||||
|
|
||||||
byte[] m_MsgBuffer;
|
byte[] m_MsgBuffer;
|
||||||
NetworkReader m_MsgReader;
|
|
||||||
|
|
||||||
protected enum ConnectState
|
protected enum ConnectState
|
||||||
{
|
{
|
||||||
@ -89,7 +88,6 @@ public NetworkClient()
|
|||||||
{
|
{
|
||||||
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
|
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
|
||||||
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
|
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
|
||||||
m_MsgReader = new NetworkReader(m_MsgBuffer);
|
|
||||||
AddClient(this);
|
AddClient(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +95,6 @@ public NetworkClient(NetworkConnection conn)
|
|||||||
{
|
{
|
||||||
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
|
if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); }
|
||||||
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
|
m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize];
|
||||||
m_MsgReader = new NetworkReader(m_MsgBuffer);
|
|
||||||
AddClient(this);
|
AddClient(this);
|
||||||
|
|
||||||
SetActive(true);
|
SetActive(true);
|
||||||
@ -416,7 +413,6 @@ internal virtual void Update()
|
|||||||
(short)MsgType.LLAPIMsg, "msg", 1);
|
(short)MsgType.LLAPIMsg, "msg", 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_MsgReader.SeekZero();
|
|
||||||
m_Connection.TransportReceive(m_MsgBuffer, receivedSize, channelId);
|
m_Connection.TransportReceive(m_MsgBuffer, receivedSize, channelId);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user