You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 07:36:32 +09:00
m_visibleStatus made internal
This commit is contained in:
@@ -158,6 +158,9 @@ namespace Lidgren.Network
|
||||
|
||||
m_owner.LogVerbose("Finishing Disconnect(" + m_disconnectByeMessage + ")");
|
||||
|
||||
if (m_unsentMessages.Count > 0)
|
||||
m_owner.LogDebug(m_unsentMessages.Count + " unsent messages were not sent before disconnected");
|
||||
|
||||
// release some held memory
|
||||
m_unackedSends.Clear();
|
||||
m_acknowledgesToSend.Clear();
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Lidgren.Network
|
||||
internal double m_lastHeardFrom;
|
||||
internal readonly NetQueue<NetSending> m_unsentMessages;
|
||||
internal NetConnectionStatus m_status;
|
||||
private NetConnectionStatus m_visibleStatus;
|
||||
internal NetConnectionStatus m_visibleStatus;
|
||||
private double m_lastSentUnsentMessages;
|
||||
private float m_throttleDebt;
|
||||
private NetPeerConfiguration m_peerConfiguration;
|
||||
@@ -70,10 +70,6 @@ namespace Lidgren.Network
|
||||
public NetConnectionStatus Status
|
||||
{
|
||||
get { return m_visibleStatus; }
|
||||
internal set
|
||||
{
|
||||
m_visibleStatus = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace Lidgren.Network
|
||||
if (retval.MessageType == NetIncomingMessageType.StatusChanged)
|
||||
{
|
||||
NetConnectionStatus status = (NetConnectionStatus)retval.PeekByte();
|
||||
retval.SenderConnection.Status = status;
|
||||
retval.SenderConnection.m_visibleStatus = status;
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user