Engine-Pong/Game/Network/NetworkClient.cs

15 lines
384 B
C#
Raw Normal View History

2024-07-16 22:50:16 +03:00
using System.Diagnostics;
using System.Threading.Tasks;
2024-07-15 17:00:04 +03:00
using Syntriax.Engine.Network.Abstract;
namespace Syntriax.Engine.Network;
public class NetworkClient : NetworkBase, INetworkCommunicatorClient
{
public void Connect(string address, int port, string? password = null)
{
Manager.Start();
Manager.Connect(address, port, password ?? string.Empty);
}
}