public void SaveToConfigObject(UdtPrivateConfig config) { foreach(var component in _components) { component.SaveToConfigObject(config); } }
public void SaveToConfigObject(UdtPrivateConfig config) { foreach (var component in _components) { component.SaveToConfigObject(config); } }
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(); }
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(); }
public void SaveToConfigObject(UdtPrivateConfig config) { // Nothing to do. }
public void SaveToConfigObject(UdtPrivateConfig config) { // Nothing to do. }
public static CutByPatternOptions CreateCutByPatternOptions(UdtConfig config, UdtPrivateConfig privateConfig) { return new CutByPatternOptions( config.CutStartOffset, config.CutEndOffset, config.MaxThreadCount, config.MergeCutSectionsFromDifferentPatterns, privateConfig.PatternCutPlayerIndex, privateConfig.PatternCutPlayerName); }
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; }
public void SaveToConfigObject(UdtPrivateConfig config) { config.FragCutAllowedMeansOfDeaths = _playerMODFilters.GetBitMask(); }
public void SaveToConfigObject(UdtPrivateConfig config) { config.FragCutAllowedMeansOfDeaths = _playerMODFilters.GetBitMask(); }