Can now somewhat reliably join a party

This commit is contained in:
watsonb8
2019-07-06 15:52:28 -04:00
parent 0d64c0732e
commit 2a3290defc
15 changed files with 140 additions and 125 deletions

View File

@ -8,7 +8,7 @@ namespace Aurora.Services
public class ServerService : BaseService<ServerService>
{
private string _hostname = "127.0.0.1";
private int _port = 50001;
private int _port = SettingsService.Instance.DefaultPort;
private Grpc.Core.Server _server;
/// <summary>
@ -28,9 +28,8 @@ namespace Aurora.Services
get { return _hostname; }
}
public void Initialize(string hostname, int port)
public void Initialize(string hostname)
{
this._port = port;
this._hostname = hostname;
_server = new Grpc.Core.Server
{