fix: Server Connection Count Default
This commit is contained in:
		@@ -8,12 +8,12 @@ namespace Syntriax.Engine.Network;
 | 
				
			|||||||
public class NetworkServer : NetworkBase, INetworkCommunicatorServer
 | 
					public class NetworkServer : NetworkBase, INetworkCommunicatorServer
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public string Password { get; private set; } = string.Empty;
 | 
					    public string Password { get; private set; } = string.Empty;
 | 
				
			||||||
    public int MaxConnectionCount { get; private set; } = 0;
 | 
					    public int MaxConnectionCount { get; private set; } = 2;
 | 
				
			||||||
    public int Port { get; private set; } = 8888;
 | 
					    public int Port { get; private set; } = 8888;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private readonly NetDataWriter netDataWriter = new();
 | 
					    private readonly NetDataWriter netDataWriter = new();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public NetworkServer() : this(8888, 0) { }
 | 
					    public NetworkServer() : this(8888, 2) { }
 | 
				
			||||||
    public NetworkServer(int port, int maxConnectionCount) : base()
 | 
					    public NetworkServer(int port, int maxConnectionCount) : base()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        MaxConnectionCount = maxConnectionCount;
 | 
					        MaxConnectionCount = maxConnectionCount;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user