public void AdjustScene(ISceneHost scene)
        {
            var steamConfig = scene.GetComponent<IEnvironment>().Configuration.steam;

            //_authenticator = new SteamUserTicketAuthenticator( steamConfig.apiKey, steamConfig.appId);

            _authenticator = new SteamUserTicketAuthenticatorMockup();
        }
コード例 #2
0
        private void ApplyConfig(IEnvironment environment, ISceneHost scene)
        {
            var steamConfig = environment.Configuration.steam;

            _steamService = scene.DependencyResolver.Resolve <ISteamService>();
            if (steamConfig?.usemockup != null && (bool)(steamConfig.usemockup))
            {
                _authenticator = new SteamUserTicketAuthenticatorMockup();
            }
            else
            {
                _authenticator =

                    new SteamUserTicketAuthenticator(_steamService);
            }
            _vacEnabled = steamConfig?.vac != null && (bool)steamConfig.vac;
        }