You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 23:26:32 +09:00
NetOutgoingMessage.Write(string) now preallocates the correct amount of memory
NetPeer.MessageAvailable added
This commit is contained in:
@@ -150,6 +150,19 @@ namespace Lidgren.Network
|
||||
Thread.Sleep(3);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if there is a queued message available to read using ReadMessage()
|
||||
/// </summary>
|
||||
public bool MessageAvailable
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_status == NetPeerStatus.NotRunning)
|
||||
return false;
|
||||
return (m_releasedIncomingMessages.Count > 0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read a pending message from any connection, if any
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user