fix: Server Connection Count Default

This commit is contained in:
Syntriax 2024-07-19 21:40:08 +03:00
parent 150deaa618
commit 376f18c43a
1 changed files with 2 additions and 2 deletions

View File

@ -8,12 +8,12 @@ namespace Syntriax.Engine.Network;
public class NetworkServer : NetworkBase, INetworkCommunicatorServer
{
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;
private readonly NetDataWriter netDataWriter = new();
public NetworkServer() : this(8888, 0) { }
public NetworkServer() : this(8888, 2) { }
public NetworkServer(int port, int maxConnectionCount) : base()
{
MaxConnectionCount = maxConnectionCount;