public GameNetworkInfo(EndPointInfo defaultAddress = null, bool findMatchOnly = false) { if (defaultAddress != null) { DefaultAddress = defaultAddress; } FindMatchOnly = findMatchOnly; }
private void ConnectToGameInstance(MasterServerAPI.ServerInstanceResultPacket result) { EndPointInfo ep = new EndPointInfo(Info.Address.IP, result.Port); CardNetworkManager.Instance.CurrentEndPoint = ep; instanceConnecting = true; connectSuccess = false; Tries++; }
public MasterServerInfo(EndPointInfo address = null, int connectInstanceTimeout = 5000, int connectMasterTimeout = 5000, int connectInstanceTries = 5, int connectMasterTries = 3) { if (address != null) { Address = address; } ConnectInstanceTimeout = connectInstanceTimeout; ConnectMasterTimeout = connectMasterTimeout; ConnectInstanceTries = connectInstanceTries; ConnectMasterTries = connectMasterTries; }