/// <summary>
        /// Execute this stage of the process.
        /// </summary>
        /// <param name="commiter">The function to call when we've finished the stage to report the results.</param>
        public void Execute(Action <DaemonStageResult> commiter)
        {
            var consumer = new DefaultHighlightingConsumer(this, _settingsStore);

            IFile file = this._daemonProcess.SourceFile.GetTheOnlyPsiFile(CSharpLanguage.Instance);

            if (file == null)
            {
                return;
            }

            StringSettings stringSettings = this._settingsStore.GetKey <StringSettings>(SettingsOptimization.OptimizeDefault);

            foreach (var literalExpression in file.Descendants <ICSharpLiteralExpression>())
            {
                CheckString(literalExpression, consumer, stringSettings, _solution, _settingsStore, _daemonProcess);
            }

            foreach (var literalExpression in file.Descendants <IInterpolatedStringExpression>())
            {
                CheckString(literalExpression, consumer, stringSettings, _solution, _settingsStore, _daemonProcess);
            }

            try
            {
                commiter(new DaemonStageResult(consumer.Highlightings));
            }
            catch
            {
                // Do nothing if it doesn't work.
            }
        }
        /// <summary>
        /// Execute this stage of the process.
        /// </summary>
        /// <param name="commiter">The function to call when we've finished the stage to report the results.</param>
        public void Execute(Action <DaemonStageResult> commiter)
        {
            var highlightingConsumer = new DefaultHighlightingConsumer(this, _settingsStore);

            IFile file = this._daemonProcess.SourceFile.GetTheOnlyPsiFile(CSharpLanguage.Instance);

            if (file == null)
            {
                return;
            }

            StringSettings stringSettings = this._settingsStore.GetKey <StringSettings>(SettingsOptimization.OptimizeDefault);


            file.ProcessChildren <ICSharpLiteralExpression>(literalExpression
                                                            => CheckString(literalExpression, highlightingConsumer, stringSettings));

            try
            {
                commiter(new DaemonStageResult(highlightingConsumer.Highlightings));
            }
            catch
            {
                // Do nothing if it doesn't work.
            }
        }
Beispiel #3
0
 public void UpdateStrings(StringSettings temp)
 {
     nowAvailable      = temp.popUpNowAvailable;
     sizeUpdate        = temp.popUpSizeUpdate;
     newCombo          = temp.popUpNewCombo;
     okButtonText.text = temp.popUpOk;
 }
        public string GetorDefault(string key, string defaultVal)
        {
            if (!StringSettings.ContainsKey(key))
            {
                SetValue(key, defaultVal);
            }

            return(StringSettings[key]);
        }
Beispiel #5
0
    public void SetStrings()
    {
        StringSettings temp = new StringSettings(Language.LanguageToInt(currentLanguage));

        headphonesText.text   = temp.headphones;
        laguageText.text      = temp.language;
        selectText.text       = temp.select;
        toTutorialText.text   = temp.playTutorial;
        skipTutorialText.text = temp.skipTutorial;
    }
Beispiel #6
0
        //Функция подгружает интерфейс игрока на уровне
        private void LoadUI()
        {
            stringSettings = new StringSettings(Language.LanguageToInt(languageSettings));

            pauseMenu.SetMenu(stringSettings);

            gameManager.attackMenu = attackMenu;
            gameManager.pauseMenu  = pauseMenu;
            gameManager.combometer = combometer;

            pauseMenu.DeactivateMenu();
        }
        public static void CheckString(IInterpolatedStringExpression literalExpression,
                                       DefaultHighlightingConsumer consumer, StringSettings settings, ISolution _solution, IContextBoundSettingsStore _settingsStore, IDaemonProcess _daemonProcess = null)
        {
            //ConstantValue val = literalExpression.ConstantValue;

            // Ignore it unless it's something we're re-evalutating
            if (_daemonProcess != null && !_daemonProcess.IsRangeInvalidated(literalExpression.GetDocumentRange()))
            {
                return;
            }

            foreach (var tokenNode in literalExpression.StringLiterals)
            {
                if (tokenNode == null)
                {
                    continue;
                }

                var tokenType = tokenNode.GetTokenType();

                if (tokenType == CSharpTokenType.INTERPOLATED_STRING_VERBATIM ||
                    tokenType == CSharpTokenType.INTERPOLATED_STRING_VERBATIM_START ||
                    tokenType == CSharpTokenType.INTERPOLATED_STRING_VERBATIM_MIDDLE ||
                    tokenType == CSharpTokenType.INTERPOLATED_STRING_VERBATIM_END
                    )
                {
                    if (settings.IgnoreVerbatimStrings)
                    {
                        return;
                    }
                }
                else if (tokenType != CSharpTokenType.INTERPOLATED_STRING_REGULAR_START &&
                         tokenType != CSharpTokenType.INTERPOLATED_STRING_REGULAR_MIDDLE &&
                         tokenType != CSharpTokenType.INTERPOLATED_STRING_REGULAR_END &&
                         tokenType != CSharpTokenType.INTERPOLATED_STRING_REGULAR)
                {
                    continue;
                }


                ISpellChecker spellChecker = SpellCheckManager.GetSpellChecker(_settingsStore, _solution, settings.DictionaryNames);

                StringSpellChecker.SpellCheck(
                    literalExpression.GetDocumentRange()
                    .Document,
                    tokenNode,
                    spellChecker,
                    _solution, consumer, _settingsStore, settings);
            }
        }
        public void DualDashSpaceString()
        {
            StringSettings settings = new StringSettings();

            Assert.IsNull(settings.InputFile);
            Assert.IsNull(settings.OutputFile);
            Assert.IsNull(settings.ConfigFiles);

            ConsoleArgs <StringSettings> .Populate("ConsoleArgs.dll --i myfile.in", settings);

            Assert.IsNotNull(settings.InputFile);
            Assert.IsTrue(settings.InputFile == "myfile.in");
            Assert.IsNull(settings.OutputFile);
            Assert.IsNull(settings.ConfigFiles);
        }
Beispiel #9
0
    //Функция обновляет тексты меню согласно языку
    public void SetStrings(int language)
    {
        //Debug.Log("SetStrings: " + language);
        StringSettings temp = new StringSettings(language);

        continueText.text = temp.@continue;

        equipmentText.text = temp.equipment;
        shopText.text      = temp.shop;
        contentText.text   = temp.content;
        settingsText.text  = temp.settings;

        equipHeaderText.text    = temp.equipment;
        settingsHeaderText.text = temp.settings;

        graphics_low    = temp.graphicsLow;
        graphics_normal = temp.graphicsNormal;
        UpdateGraphicsText();

        volumeText.text         = temp.volume;
        languageButtonText.text = temp.language;
        settingsBackText.text   = temp.back;

        contentNextText.text   = temp.following;
        equipmentBackText.text = temp.back;
        exitText.text          = temp.exit;

        selectSceneText.text = temp.select;
        prologueText.text    = temp.prologue;
        epilogueText.text    = temp.epilogue;
        titlesText.text      = temp.titles;
        chapter1Text.text    = temp.chapter1;
        chapter2Text.text    = temp.chapter2;
        chapter3Text.text    = temp.chapter3;
        chapter4Text.text    = temp.chapter4;
        chapter5Text.text    = temp.chapter5;
        chapter6Text.text    = temp.chapter6;
        chapter7Text.text    = temp.chapter7;
        chapter8Text.text    = temp.chapter8;
        chapter9Text.text    = temp.chapter9;
        chapter10Text.text   = temp.chapter10;
        chapter11Text.text   = temp.chapter11;

        equipSelector.SetStrings(temp);

        popUpManager.UpdateStrings(temp);
        UpdateMainSpread(temp);
    }
        //Сделать специальное меню для соответсвующей опции
        public bool SetMenu(StringSettings stringSettingsTemp)
        {
            instance = this;
            if (gameManager == null)
            {
                gameManager = GameManager.instance;
            }
            if (pointSpawner == null)
            {
                pointSpawner = PointSpawner.instance;
            }

            gameIsPaused = false;
            currentState = State.Pause;

            header_strings.Clear();
            continue_strings.Clear();
            restart_strings.Clear();

            header_strings.Add(stringSettingsTemp.pauseHeader);
            continue_strings.Add(stringSettingsTemp.@continue);
            restart_strings.Add(stringSettingsTemp.restart);

            header_strings.Add(stringSettingsTemp.victoryHeader);
            continue_strings.Add(stringSettingsTemp.@continue);
            restart_strings.Add(stringSettingsTemp.restart);

            header_strings.Add(stringSettingsTemp.deathHeader);
            continue_strings.Add(stringSettingsTemp.@continue);
            restart_strings.Add(stringSettingsTemp.restart);

            exitButtonText.text            = stringSettingsTemp.exit;
            confirmationHeaderText.text    = stringSettingsTemp.confirmationHeader;
            confirmationYesButtonText.text = stringSettingsTemp.confirmationYes;
            confirmationNoButtonText.text  = stringSettingsTemp.confirmationNo;

            blackInkText = blackInkGameObject.GetComponent <TextMeshProUGUI>();
            scoreText    = scoreGameObject.GetComponent <TextMeshProUGUI>();

            confirmationHeaderText    = confirmationHeaderGameObject.GetComponent <TextMeshProUGUI>();
            confirmationYesButtonText = confirmationYesButtonGameObject.transform.Find("Yes").gameObject.GetComponent <TextMeshProUGUI>();
            confirmationNoButtonText  = confirmationNoButtonGameObject.transform.Find("No").gameObject.GetComponent <TextMeshProUGUI>();

            UpdateScore();
            DeactivateMenu();
            menu_is_loaded = true;
            return(true);
        }
Beispiel #11
0
    public void SetStrings(int language)
    {
        StringSettings temp = new StringSettings(language);

        nextButtonText.text     = temp.next;
        backButtonText.text     = temp.back;
        purchaseButtonText.text = temp.purchase;

        contentItems = new ShopItem[8] {
            new ShopItem(temp.longsword, temp.longswordDescription),
            new ShopItem(temp.brokenSword, temp.brokenSwordDescription),
            new ShopItem(temp.falchion, temp.falchionDescription),
            new ShopItem(temp.zweichender, temp.zweichenderDescription),
            new ShopItem(temp.peterSword, temp.peterSwordDescription),
            new ShopItem(temp.januariusDagger, temp.januariusDaggerDescription),
            new ShopItem(temp.spear, temp.spearDescription),
            new ShopItem(temp.russianSword, temp.russianSwordDescription),
        };

        weaponItems = new ShopItem[8] {
            new ShopItem(temp.longsword, temp.longswordDescription),
            new ShopItem(temp.brokenSword, temp.brokenSwordDescription),
            new ShopItem(temp.falchion, temp.falchionDescription),
            new ShopItem(temp.zweichender, temp.zweichenderDescription),
            new ShopItem(temp.peterSword, temp.peterSwordDescription),
            new ShopItem(temp.januariusDagger, temp.januariusDaggerDescription),
            new ShopItem(temp.spear, temp.spearDescription),
            new ShopItem(temp.russianSword, temp.russianSwordDescription),
        };

        armorItems = new ShopItem[4] {
            new ShopItem(temp.lightArmor, temp.lightArmorDescription),
            new ShopItem(temp.chainMail, temp.chainMailDescription),
            new ShopItem(temp.strengthenedChainMail, temp.strengthenedChainMailDescription),
            new ShopItem(temp.heavyArmor, temp.heavyArmorDescription),
        };

        talismanItems = new ShopItem[8] {
            new ShopItem(temp.noCharm, ""),
            new ShopItem(temp.welfareCharm, temp.welfareCharmDescription),
            new ShopItem(temp.hereticCharm, temp.hereticCharmDescription),
            new ShopItem(temp.orderCharm, temp.orderCharmDescription),
            new ShopItem(temp.crucifix, temp.crucifixDescription),
            new ShopItem(temp.ivoryPommel, temp.ivoryPommelDescription),
            new ShopItem(temp.popeSeal, temp.popeSealDescription),
            new ShopItem(temp.traitorPendant, temp.traitorPendantDescription),
        };
    }
        public void MixedDashMultipleSpaceStringsWithWords()
        {
            StringSettings settings = new StringSettings();

            Assert.IsNull(settings.InputFile);
            Assert.IsNull(settings.OutputFile);
            Assert.IsNull(settings.ConfigFiles);

            ConsoleArgs <StringSettings> .Populate("ConsoleArgs.dll -input myfile.in --o outfile.out", settings);

            Assert.IsNotNull(settings.InputFile);
            Assert.IsTrue(settings.InputFile == "myfile.in");
            Assert.IsNotNull(settings.OutputFile);
            Assert.IsTrue(settings.OutputFile == "outfile.out");
            Assert.IsNull(settings.ConfigFiles);
        }
        public void MixDashMultipleEqualStrings()
        {
            StringSettings settings = new StringSettings();

            Assert.IsNull(settings.InputFile);
            Assert.IsNull(settings.OutputFile);
            Assert.IsNull(settings.ConfigFiles);

            ConsoleArgs <StringSettings> .Populate("ConsoleArgs.dll -i=myfile.in --o=outfile.out", settings);

            Assert.IsNotNull(settings.InputFile);
            Assert.IsTrue(settings.InputFile == "myfile.in");
            Assert.IsNotNull(settings.OutputFile);
            Assert.IsTrue(settings.OutputFile == "outfile.out");
            Assert.IsNull(settings.ConfigFiles);
        }
Beispiel #14
0
        /// <summary>
        /// Execute this stage of the process.
        /// </summary>
        /// <param name="commiter">The function to call when we've finished the stage to report the results.</param>
        public void Execute(Action <DaemonStageResult> commiter)
        {
            IFile file = _daemonProcess.SourceFile.GetTheOnlyPsiFile(CSharpLanguage.Instance);

            if (file == null)
            {
                return;
            }

            StringSettings stringSettings = _settingsStore.GetKey <StringSettings>(SettingsOptimization.OptimizeDefault);


            if (!_daemonProcess.FullRehighlightingRequired)
            {
                return;
            }

            CommentAnalyzer commentAnalyzer = new CommentAnalyzer(_solution, _settingsStore);
            IdentifierSpellCheckAnalyzer identifierAnalyzer = new IdentifierSpellCheckAnalyzer(_solution, _settingsStore, _daemonProcess.SourceFile);

#if RESHARPER20173
            var consumer = new DefaultHighlightingConsumer(_daemonProcess.SourceFile);
#else
            var consumer = new DefaultHighlightingConsumer(this, _settingsStore);
#endif

            foreach (var classMemberDeclaration in file.Descendants <IClassMemberDeclaration>())
            {
                CheckMember(classMemberDeclaration, consumer, commentAnalyzer, identifierAnalyzer);
            }

            if (_daemonProcess.InterruptFlag)
            {
                return;
            }
            try
            {
                commiter(new DaemonStageResult(consumer.Highlightings));
            } catch
            {
                // Do nothing if it doesn't work.
            }
        }
        public static void CheckString(ICSharpLiteralExpression literalExpression,
                                       DefaultHighlightingConsumer consumer, StringSettings settings, ISolution _solution, IContextBoundSettingsStore _settingsStore, IDaemonProcess _daemonProcess = null)
        {
            //ConstantValue val = literalExpression.ConstantValue;

            // Ignore it unless it's something we're re-evalutating
            if (_daemonProcess != null && !_daemonProcess.IsRangeInvalidated(literalExpression.GetDocumentRange()))
            {
                return;
            }

            ITokenNode tokenNode = literalExpression.Literal;

            if (tokenNode == null)
            {
                return;
            }

            if (tokenNode.GetTokenType() == CSharpTokenType.STRING_LITERAL_VERBATIM)
            {
                if (settings.IgnoreVerbatimStrings)
                {
                    return;
                }
            }
            else if (tokenNode.GetTokenType() != CSharpTokenType.STRING_LITERAL_REGULAR)
            {
                return;
            }

            ISpellChecker spellChecker = SpellCheckManager.GetSpellChecker(_settingsStore, _solution, settings.DictionaryNames);

            StringSpellChecker.SpellCheck(
                literalExpression.GetDocumentRange()
                .Document,
                tokenNode,
                spellChecker,
                _solution, consumer, _settingsStore, settings);
        }
        public void CheckString(
            ICSharpLiteralExpression literalExpression,
            IHighlightingConsumer highlightingConsumer, StringSettings settings)
        {
            //ConstantValue val = literalExpression.ConstantValue;

            // Ignore it unless it's something we're re-evalutating
            if (!this._daemonProcess.IsRangeInvalidated(literalExpression.GetDocumentRange()))
            {
                return;
            }



            // Ignore verbatim strings.
            if (settings.IgnoreVerbatimStrings &&
                LiteralService.Get(CSharpLanguage.Instance).IsVerbatimStringLiteral(literalExpression))
            {
                return;
            }

            ITokenNode tokenNode = literalExpression.Literal;

            if (tokenNode == null)
            {
                return;
            }

            if (tokenNode.GetTokenType() == CSharpTokenType.STRING_LITERAL)
            {
                ISpellChecker spellChecker = SpellCheckManager.GetSpellChecker(this._settingsStore, this._solution, settings.DictionaryNames);

                StringSpellChecker.SpellCheck(
                    literalExpression.GetDocumentRange().Document,
                    tokenNode,
                    spellChecker,
                    this._solution, highlightingConsumer, this._settingsStore, settings);
            }
        }
 public TextStatisticsService(IOptions <StringSettings> stringSettings)
 {
     _stringSettings = stringSettings.Value;
 }
Beispiel #18
0
    public void UpdateMainSpread(StringSettings temp)
    {
        switch (currentScene)
        {
        case 0:
            chapterText.text = temp.prologue;
            break;

        case 1:
            chapterText.text = temp.chapter1;
            break;

        case 2:
            chapterText.text = temp.chapter2;
            break;

        case 3:
            chapterText.text = temp.chapter3;
            break;

        case 4:
            chapterText.text = temp.chapter4;
            break;

        case 5:
            chapterText.text = temp.chapter5;
            break;

        case 6:
            chapterText.text = temp.chapter6;
            break;

        case 7:
            chapterText.text = temp.chapter7;
            break;

        case 8:
            chapterText.text = temp.chapter8;
            break;

        case 9:
            chapterText.text = temp.chapter9;
            break;

        case 10:
            chapterText.text = temp.chapter10;
            break;

        case 11:
            chapterText.text = temp.chapter11;
            break;

        case 12:
            chapterText.text = temp.epilogue;
            break;

        default:
            Debug.Log("MainMenuManager.UpdateMainSpread: Undefined scene, setting up to 1");
            goto case 1;
        }

        scoreText.text = $"{temp.bestScore}\n{bestScore.ToString()}";
    }
 public ScheduleTask(IServiceScopeFactory serviceScopeFactory, IConfiguration configuration) : base(serviceScopeFactory, configuration)
 {
     _stringSettings = new StringSettings(configuration);
     _schedule       = _stringSettings.GetSchedule();
 }
        public static void SpellCheck(IDocument document, ITokenNode token, ISpellChecker spellChecker,
                                      ISolution solution, DefaultHighlightingConsumer consumer, IContextBoundSettingsStore settingsStore, StringSettings settings)
        {
            if (spellChecker == null)
            {
                return;
            }

            string buffer    = unescape(token.GetText());
            ILexer wordLexer = new WordLexer(buffer);

            wordLexer.Start();
            while (wordLexer.TokenType != null)
            {
                string tokenText = wordLexer.GetCurrTokenText();
                if (SpellCheckUtil.ShouldSpellCheck(tokenText, settings.CompiledWordsToIgnore) &&
                    !spellChecker.TestWord(tokenText, true))
                {
                    IClassMemberDeclaration containingElement =
                        token.GetContainingNode <IClassMemberDeclaration>(false);
                    if (containingElement == null ||
                        !IdentifierResolver.IsIdentifier(containingElement, solution, tokenText))
                    {
                        CamelHumpLexer camelHumpLexer = new CamelHumpLexer(buffer, wordLexer.TokenStart, wordLexer.TokenEnd);
                        foreach (LexerToken humpToken in camelHumpLexer)
                        {
                            if (SpellCheckUtil.ShouldSpellCheck(humpToken.Value, settings.CompiledWordsToIgnore) &&
                                !spellChecker.TestWord(humpToken.Value, true))
                            {
                                //int start = token.GetTreeStartOffset().Offset + wordLexer.TokenStart;
                                //int end = start + tokenText.Length;

                                //TextRange range = new TextRange(start, end);
                                //DocumentRange documentRange = new DocumentRange(document, range);

                                DocumentRange documentRange =
                                    token.GetContainingFile().TranslateRangeForHighlighting(token.GetTreeTextRange());
                                documentRange = documentRange.ExtendLeft(-wordLexer.TokenStart);
                                documentRange = documentRange.ExtendRight(-1 * (documentRange.GetText().Length - tokenText.Length));

                                TextRange textRange = new TextRange(humpToken.Start - wordLexer.TokenStart,
                                                                    humpToken.End - wordLexer.TokenStart);

                                //string word = document.GetText(range);
                                string word = documentRange.GetText();
                                consumer.AddHighlighting(
                                    new StringSpellCheckHighlighting(
                                        word,
                                        documentRange,
                                        humpToken.Value,
                                        textRange,
                                        solution,
                                        spellChecker,
                                        settingsStore),
                                    documentRange);
                                break;
                            }
                        }
                    }
                }
                wordLexer.Advance();
            }
        }
    public void SetStrings(StringSettings temp)
    {
        buttonTextSelect      = temp.select;
        buttonTextPurchase    = temp.purchase;
        actionButtonText.text = temp.select;

        equipment[(int)EquipType.Weapon].currentString    = temp.currentWeapon;
        equipment[(int)EquipType.Armor].currentString     = temp.currentArmor;
        equipment[(int)EquipType.Talisman1].currentString = temp.currentTalisman;
        equipment[(int)EquipType.Talisman2].currentString = temp.currentTalisman;
        equipment[(int)EquipType.Talisman3].currentString = temp.currentTalisman;

        // Set Weapon strings
        equipment[(int)EquipType.Weapon].names = new string[8] {
            temp.longsword, temp.brokenSword, temp.falchion, temp.zweichender,
            temp.peterSword, temp.januariusDagger, temp.spear, temp.russianSword
        };

        equipment[(int)EquipType.Weapon].descriptions = new string[8] {
            temp.longswordDescription, temp.brokenSwordDescription, temp.falchionDescription,
            temp.zweichenderDescription, temp.peterSwordDescription, temp.januariusDaggerDescription,
            temp.spearDescription, temp.russianSwordDescription
        };

        equipment[(int)EquipType.Weapon].cost = new int[8] {
            0, 10, 20, 40, 200, 300, 500, 100
        };

        equipment[(int)EquipType.Weapon].purchased    = new bool[8];
        equipment[(int)EquipType.Weapon].purchased[0] = true;

        equipment[(int)EquipType.Weapon].UpdateCurrentText();

        // Set Armor strings
        equipment[(int)EquipType.Armor].names = new string[4] {
            temp.lightArmor, temp.chainMail, temp.strengthenedChainMail, temp.heavyArmor
        };

        equipment[(int)EquipType.Armor].descriptions = new string[4] {
            temp.lightArmorDescription, temp.chainMailDescription,
            temp.strengthenedChainMailDescription, temp.heavyArmorDescription
        };

        equipment[(int)EquipType.Armor].cost = new int[4] {
            0, 50, 200, 500
        };

        equipment[(int)EquipType.Armor].purchased    = new bool[4];
        equipment[(int)EquipType.Armor].purchased[0] = true;

        equipment[(int)EquipType.Armor].UpdateCurrentText();

        // Set Talisman strings
        equipment[(int)EquipType.Talisman1].names = new string[8] {
            temp.noCharm, temp.welfareCharm, temp.hereticCharm, temp.orderCharm,
            temp.crucifix, temp.ivoryPommel, temp.popeSeal, temp.traitorPendant
        };

        equipment[(int)EquipType.Talisman1].descriptions = new string[8] {
            "", temp.welfareCharmDescription, temp.hereticCharmDescription, temp.orderCharmDescription,
            temp.crucifixDescription, temp.ivoryPommelDescription, temp.popeSealDescription,
            temp.traitorPendantDescription
        };

        equipment[(int)EquipType.Talisman1].purchased    = new bool[8];
        equipment[(int)EquipType.Talisman1].purchased[0] = true;

        equipment[(int)EquipType.Talisman1].cost = new int[8] {
            0, 50, 50, 70, 500, 50, 50, 3000
        };

        equipment[(int)EquipType.Talisman2].names = equipment[(int)EquipType.Talisman1].names;
        equipment[(int)EquipType.Talisman3].names = equipment[(int)EquipType.Talisman1].names;

        equipment[(int)EquipType.Talisman2].descriptions = equipment[(int)EquipType.Talisman1].descriptions;
        equipment[(int)EquipType.Talisman3].descriptions = equipment[(int)EquipType.Talisman1].descriptions;

        equipment[(int)EquipType.Talisman2].purchased = equipment[(int)EquipType.Talisman1].purchased;
        equipment[(int)EquipType.Talisman3].purchased = equipment[(int)EquipType.Talisman1].purchased;

        equipment[(int)EquipType.Talisman2].cost = equipment[(int)EquipType.Talisman1].cost;
        equipment[(int)EquipType.Talisman3].cost = equipment[(int)EquipType.Talisman1].cost;

        equipment[(int)EquipType.Talisman1].UpdateCurrentText();
        equipment[(int)EquipType.Talisman2].UpdateCurrentText();
        equipment[(int)EquipType.Talisman3].UpdateCurrentText();
    }
Beispiel #22
0
 /// <summary>
 /// String Sort Service constructor
 /// </summary>
 /// <param name="sortAlgorithmFactory"></param>
 /// <param name="stringSettings"></param>
 public StringSortService(SortAlgorithmFactory sortAlgorithmFactory, IOptions <StringSettings> stringSettings)
 {
     _sortAlgorithmFactory = sortAlgorithmFactory;
     _stringSettings       = stringSettings.Value;
 }