예제 #1
0
    public TranslatedPasswordComponentSolver(TwitchModule module) :
        base(module)
    {
        _component    = module.BombComponent.GetComponent(PasswordComponentType);
        _downButtons  = (KMSelectable[])DownButtonField.GetValue(_component);
        _submitButton = (MonoBehaviour)SubmitButtonField.GetValue(_component);
        _display      = (TextMesh[])DisplayField.GetValue(_component);
        ModInfo       = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} cycle 1 3 5 [cycle through the letters in columns 1, 3, and 5] | !{0} toggle [move all columns down one letter] | !{0} world [try to submit a word]").Clone();

        LanguageCode = TranslatedModuleHelper.GetLanguageCode(_component, PasswordComponentType);
        ModInfo.moduleDisplayName = $"Passwords Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, PasswordComponentType)}";
        Module.HeaderText         = ModInfo.moduleDisplayName;
    }
    public TranslatedMorseCodeComponentSolver(TwitchModule module) :
        base(module)
    {
        _component      = module.BombComponent.GetComponent(MorseCodeComponentType);
        _upButton       = (MonoBehaviour)UpButtonField.GetValue(_component);
        _downButton     = (MonoBehaviour)DownButtonField.GetValue(_component);
        _transmitButton = (MonoBehaviour)TransmitButtonField.GetValue(_component);
        ModInfo         = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} transmit 3.573, !{0} trans 573, !{0} transmit 3.573 MHz, !{0} tx 573 [transmit frequency 3.573]").Clone();

        LanguageCode = TranslatedModuleHelper.GetLanguageCode(_component, MorseCodeComponentType);
        ModInfo.moduleDisplayName = $"Morse Code Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, MorseCodeComponentType)}";
        Module.HeaderText         = ModInfo.moduleDisplayName;
    }
예제 #3
0
    public TranslatedPasswordComponentSolver(TwitchModule module) :
        base(module)
    {
        _downButtons  = (KMSelectable[])DownButtonField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        _submitButton = (MonoBehaviour)SubmitButtonField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        _display      = (TextMesh[])DisplayField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        ModInfo       = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} cycle 1 3 5 [cycle through the letters in columns 1, 3, and 5] | !{0} cycle [cycle through all columns] | !{0} toggle [move all columns down one letter] | !{0} world [try to submit a word]").Clone();

        string language = TranslatedModuleHelper.GetManualCodeAddOn(module.BombComponent.GetComponent(PasswordComponentType), PasswordComponentType);

        if (language != null)
        {
            ManualCode = $"Password{language}";
        }
        ModInfo.moduleDisplayName = $"Passwords Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(module.BombComponent.GetComponent(PasswordComponentType), PasswordComponentType)}";
        module.Bomb.Bomb.StartCoroutine(SetHeaderText());
    }
    public TranslatedMorseCodeComponentSolver(TwitchModule module) :
        base(module)
    {
        _component      = module.BombComponent.GetComponent(MorseCodeComponentType);
        _upButton       = (MonoBehaviour)UpButtonField.GetValue(_component);
        _downButton     = (MonoBehaviour)DownButtonField.GetValue(_component);
        _transmitButton = (MonoBehaviour)TransmitButtonField.GetValue(_component);
        ModInfo         = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} transmit 3.573, !{0} trans 573, !{0} transmit 3.573 MHz, !{0} tx 573 [transmit frequency 3.573]").Clone();

        string language = TranslatedModuleHelper.GetManualCodeAddOn(_component, MorseCodeComponentType);

        if (language != null)
        {
            ManualCode = $"Morse%20Code{language}";
        }
        ModInfo.moduleDisplayName = $"Morse Code Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, MorseCodeComponentType)}";
        module.BombComponent.StartCoroutine(SetHeaderText());
    }