コード例 #1
0
ファイル: AppPatterns.cs プロジェクト: Danmer/uberdemotools
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     foreach(var component in _components)
     {
         component.SaveToConfigObject(config);
     }
 }
コード例 #2
0
ファイル: AppPatterns.cs プロジェクト: radtek/uberdemotools
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     foreach (var component in _components)
     {
         component.SaveToConfigObject(config);
     }
 }
コード例 #3
0
ファイル: AppPatternCut.cs プロジェクト: Danmer/uberdemotools
        public void SaveToConfigObject(UdtPrivateConfig config)
        {
            var playerIndex = int.MinValue;
            if(_manualIndexPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = _playerIndexComboBox.SelectedIndex;
            }
            else if(_spectatedPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = (int)UDT_DLL.udtPlayerIndex.FirstPersonPlayer;
            }
            else if(_demoTakerPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = (int)UDT_DLL.udtPlayerIndex.DemoTaker;
            }

            config.PatternCutPlayerIndex = playerIndex;
            config.PatternCutPlayerName = _playerNameTextBox.Text.ToLower();
        }
コード例 #4
0
ファイル: AppPatternCut.cs プロジェクト: radtek/uberdemotools
        public void SaveToConfigObject(UdtPrivateConfig config)
        {
            var playerIndex = int.MinValue;

            if (_manualIndexPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = _playerIndexComboBox.SelectedIndex;
            }
            else if (_spectatedPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = (int)UDT_DLL.udtPlayerIndex.FirstPersonPlayer;
            }
            else if (_demoTakerPlayerSelectionRadioButton.IsChecked ?? false)
            {
                playerIndex = (int)UDT_DLL.udtPlayerIndex.DemoTaker;
            }

            config.PatternCutPlayerIndex = playerIndex;
            config.PatternCutPlayerName  = _playerNameTextBox.Text.ToLower();
        }
コード例 #5
0
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     // Nothing to do.
 }
コード例 #6
0
ファイル: AppTimeCut.cs プロジェクト: Danmer/uberdemotools
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     // Nothing to do.
 }
コード例 #7
0
ファイル: UDT.cs プロジェクト: Danmer/uberdemotools
 public static CutByPatternOptions CreateCutByPatternOptions(UdtConfig config, UdtPrivateConfig privateConfig)
 {
     return new CutByPatternOptions(
         config.CutStartOffset,
         config.CutEndOffset,
         config.MaxThreadCount,
         config.MergeCutSectionsFromDifferentPatterns,
         privateConfig.PatternCutPlayerIndex,
         privateConfig.PatternCutPlayerName);
 }
コード例 #8
0
ファイル: UDT.cs プロジェクト: Danmer/uberdemotools
        public static udtCutByFragArg CreateCutByFragArg(UdtConfig config, UdtPrivateConfig privateConfig)
        {
            UInt32 flags = 0;
            if(config.FragCutAllowAnyDeath)
            {
                flags |= (UInt32)UDT_DLL.udtCutByFragArgFlags.AllowDeaths;
            }
            if(config.FragCutAllowSelfKills)
            {
                flags |= (UInt32)UDT_DLL.udtCutByFragArgFlags.AllowSelfKills;
            }
            if(config.FragCutAllowTeamKills)
            {
                flags |= (UInt32)UDT_DLL.udtCutByFragArgFlags.AllowTeamKills;
            }

            var rules = new udtCutByFragArg();
            rules.MinFragCount = (UInt32)config.FragCutMinFragCount;
            rules.TimeBetweenFragsSec = (UInt32)config.FragCutTimeBetweenFrags;
            rules.TimeMode = 0; // @TODO:
            rules.Flags = flags;
            rules.AllowedMeansOfDeaths = privateConfig.FragCutAllowedMeansOfDeaths;

            return rules;
        }
コード例 #9
0
ファイル: AppFragCut.cs プロジェクト: radtek/uberdemotools
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     config.FragCutAllowedMeansOfDeaths = _playerMODFilters.GetBitMask();
 }
コード例 #10
0
ファイル: AppFragCut.cs プロジェクト: Danmer/uberdemotools
 public void SaveToConfigObject(UdtPrivateConfig config)
 {
     config.FragCutAllowedMeansOfDeaths = _playerMODFilters.GetBitMask();
 }