You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 22:56:30 +09:00
NetClient.ConnectionStatus added
This commit is contained in:
@@ -50,6 +50,17 @@ namespace Lidgren.Network
|
||||
}
|
||||
}
|
||||
|
||||
public NetConnectionStatus ConnectionStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
var conn = ServerConnection;
|
||||
if (conn == null)
|
||||
return NetConnectionStatus.Disconnected;
|
||||
return conn.Status;
|
||||
}
|
||||
}
|
||||
|
||||
public NetClient(NetPeerConfiguration config)
|
||||
: base(config)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user