示例#1
0
        private void EvaluateUpgradeCurrentBatchCharacter(bool initializeCache)
        {
            int  _thoroughness      = trackBarThoroughness.Value;
            bool _overrideRegem     = checkBoxOverrideRegem.Checked;
            bool _overrideReenchant = checkBoxOverrideReenchant.Checked;

            if (initializeCache)
            {
                _optimizer.InitializeItemCache(CurrentBatchCharacter.Character.AvailableItems, _overrideRegem, _overrideReenchant, CurrentBatchCharacter.Model);
            }
            _optimizer.EvaluateUpgradeAsync(CurrentBatchCharacter.Character, CurrentBatchCharacter.Character.CalculationToOptimize, CurrentBatchCharacter.Character.OptimizationRequirements.ToArray(), _thoroughness, upgradeListEnumerator.Current.Item, upgradeListEnumerator.Current.Enchant);
        }