Esempio n. 1
0
 public GameNetworkInfo(EndPointInfo defaultAddress = null, bool findMatchOnly = false)
 {
     if (defaultAddress != null)
     {
         DefaultAddress = defaultAddress;
     }
     FindMatchOnly = findMatchOnly;
 }
Esempio n. 2
0
        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;
 }