/// <summary>
        ///     Gets the connection service to use based on command line arguments.
        /// </summary>
        /// <returns>The connection service to use.</returns>
        public ConnectionService GetConnectionService()
        {
            if (commandLineArgs.Contains(RuntimeConfigNames.LoginToken) && commandLineArgs.Contains(RuntimeConfigNames.PlayerIdentityToken))
            {
                return(ConnectionService.Locator);
            }

            return(ConnectionService.Receptionist);
        }
        /// <summary>
        ///     Gets the connection service to use based on command line arguments.
        /// </summary>
        /// <returns>The connection service to use.</returns>
        public ConnectionService GetConnectionService()
        {
            if (commandLineArgs.Contains(RuntimeConfigNames.SteamDeploymentTag) ||
                commandLineArgs.Contains(RuntimeConfigNames.SteamTicket))
            {
                return(ConnectionService.Locator);
            }

            if (commandLineArgs.Contains(RuntimeConfigNames.LoginToken))
            {
                return(commandLineArgs.Contains(RuntimeConfigNames.PlayerIdentityToken)
                    ? ConnectionService.AlphaLocator
                    : ConnectionService.Locator);
            }

            return(ConnectionService.Receptionist);
        }
Пример #3
0
 public void Initialize(ConnectionParameters connectionParameters)
 {
     commandLineArgs.TryGetCommandLineValue(RuntimeConfigNames.LinkProtocol,
                                            ref connectionParameters.Network.ConnectionType);
     connectionParameters.Network.UseExternalIp = commandLineArgs.Contains(RuntimeConfigNames.UseExternalIp);
 }